ODBC: lost info about column metadata on SQL_NO_DATA

In reset() if SqlExecDirect returns SQL_NO_DATA the column metadata
is ignored.

Change-Id: I0501fa47c42754bba42b3531da59e66c696eac53
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
This commit is contained in:
Israel Lins 2013-03-17 23:20:55 -03:00 committed by The Qt Project
parent e5a11fbb32
commit f9d856b3f5

View File

@ -960,11 +960,6 @@ bool QODBCResult::reset (const QString& query)
return false;
}
if(r == SQL_NO_DATA) {
setSelect(false);
return true;
}
SQLINTEGER bufferLength;
SQLULEN isScrollable;
r = SQLGetStmtAttr(d->hStmt, SQL_ATTR_CURSOR_SCROLLABLE, &isScrollable, SQL_IS_INTEGER, &bufferLength);