SQL/ODBC: QODBCDriver::record Unable to allocate handle
Seems to have been left out by 874f5c1f463cad61f49e0ff7007852a73fd93e7c Fixes: QTBUG-123478 Change-Id: Ic028c3786203cbc1c3d7316c1ae22c12a928b170 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit 7e5a0b54f0737986b6716bfce0a43eba2e62aae0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
efea1f981f
commit
477a7c6aa7
@ -2477,7 +2477,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