Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.4.0, 6.0
-
None
-
4ec5c0efc (dev)
Description
When SQLGetDiagRec is called repeatedly in qWarnODBCHandle, in order to obtain all available diagnostics, the message texts are concatenated and all of them returned, but the native code is overwritten for every call.
This means that if there a severe error first followed by less important warnings later, querying lastError().number() will only contain really the last of the errors and the text will contain all texts concatenated.
I suggest that all native errors are passed up somehow.
Attachments
For Gerrit Dashboard: QTBUG-45087 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
464634,4 | SQL/ODBC: Return all native error codes | dev | qt/qtbase | Status: MERGED | +2 | 0 |