[CONCPP-44] getBoolean on binary field could return incorrect result or even crash Created: 2020-09-27  Updated: 2020-09-28  Resolved: 2020-09-28

Status: Closed
Project: MariaDB Connector/C++
Component/s: General
Affects Version/s: 0.9.3
Fix Version/s: 0.9.4

Type: Bug Priority: Minor
Reporter: Lawrin Novitsky Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Unlikely this is a highly probable scenario of the getBoolean use, but still. Basically the problem is if column data is not null terminated.
This is related to binary protocol, text doesn't have it. But what is common for both protocol - getBoolean is quite suboptimal, and may significantly slow down the program if text or binary column data is long.



 Comments   
Comment by Lawrin Novitsky [ 2020-09-28 ]

Commit 2f4acdb

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