[ODBC-375] Connector can crash, if one of queires in the batch returns error on result storing Created: 2022-11-29  Updated: 2023-03-23  Resolved: 2022-11-29

Status: Closed
Project: MariaDB Connector/ODBC
Component/s: General
Affects Version/s: 3.1.17
Fix Version/s: 3.2.0, 3.1.18

Type: Bug Priority: Major
Reporter: Lawrin Novitsky Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MXS-2709 ETL / Data Migration Service Closed

 Description   

For example, this batch

"SELECT 1; SELECT(SELECT ENGINE FROM INFORMATION_SCHEMA.ENGINES)"

will do this.

This happens, because 2nd query prepares and executes without an error, the error occurs only on the stage of the storing of the result(because sub-query returns more than one row), and that case is not processed in the connector in case of batch of queries.



 Comments   
Comment by Lawrin Novitsky [ 2023-03-23 ]

3.2 will behave differently on this batch., If 3.1 returns error on execution, 3.2 will execute with success, but SQLMoreResults will return error(on move to result of erroneous statement in the batch)

Generated at Thu Feb 08 03:28:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.