Issue with OleDB using the MySQL ODBC driver
Posted: 16.11.2020, 16:15
I've hit an issue which I think may have changed recently (or at least I think I tested this last month with no issues.) I'm testing the OleDB protocol using the OleDb ODBC connector (provider MSDASQL) and a MySQL DSN/ODBC driver. Using this setup running any query returns a
Debugger Exception Notification:
Project ZeosTest.exe raised exception class EZSQLException with message 'SQL Error: OLEDB Error
Error message: The parameter is incorrect.
Source: Microsoft OLE DB Provider for ODBC Drivers
Code: -2147024809 SQL: select * from after_event_results
The error occurs in function TZAbstractOleDBStatement.ExecuteQueryPrepared and it seems like it's related to the FSupportsMultipleResultSets flag which is True in this case. I temporarily set it to false and I can run queries again. I've also tested with the Firebird ODBC driver and it works well with no changes (it sets FSupportsMultipleResultSets to false.)
Any thoughts appreciated!
-Mark
Debugger Exception Notification:
Project ZeosTest.exe raised exception class EZSQLException with message 'SQL Error: OLEDB Error
Error message: The parameter is incorrect.
Source: Microsoft OLE DB Provider for ODBC Drivers
Code: -2147024809 SQL: select * from after_event_results
The error occurs in function TZAbstractOleDBStatement.ExecuteQueryPrepared and it seems like it's related to the FSupportsMultipleResultSets flag which is True in this case. I temporarily set it to false and I can run queries again. I've also tested with the Firebird ODBC driver and it works well with no changes (it sets FSupportsMultipleResultSets to false.)
Any thoughts appreciated!
-Mark