[CONCPP-37] Inconcistency in getters results for DATE types field between text(statement) and binary(prepared statement) resultsets Created: 2020-09-20  Updated: 2020-09-25  Resolved: 2020-09-25

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

Type: Bug Priority: Major
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   

Numeric getters return year or hour value for date/time types for text resultsets, and throw exception that conversion is impossible, for binary resultsets. I am not sure what is better here, but behavior should be similar . Exception looks a bit more natural here.
Also, for YEAR type getDate behaves differently - date(YEAR-01-01) for text protocol, "Can't be converted" exception for binary.



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

Commit 11183f3

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