SQL/ODBC: QODBCDriver::record Unable to allocate handle
Seems to have been left out by 874f5c1f463cad61f49e0ff7007852a73fd93e7c Pick-to: 6.7 Fixes: QTBUG-123478 Change-Id: Ic028c3786203cbc1c3d7316c1ae22c12a928b170 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
This commit is contained in:
parent
93f87326f2
commit
7e5a0b54f0
@ -2485,7 +2485,7 @@ QSqlRecord QODBCDriver::record(const QString& tablename) const
|
||||
if (!isOpen())
|
||||
return fil;
|
||||
|
||||
SqlStmtHandle hStmt;
|
||||
SqlStmtHandle hStmt(d->hDbc);
|
||||
if (!hStmt.isValid()) {
|
||||
qSqlWarning("QODBCDriver::record: Unable to allocate handle"_L1, d);
|
||||
return fil;
|
||||
|
Loading…
x
Reference in New Issue
Block a user