[CONCPP-56] Empty stream should result in empty DB value, not a NULL Created: 2021-01-12  Updated: 2021-07-30

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

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


 Description   

Currently there is a testcase ensuring it is NULL. I guess the idea was to make possible to insert NULL value with a stream. But at the same time that makes impossible to insert empty value with a stream. While NULL value can be set with either setNull or nullptr passed to setBlob.
Perhaps the stream also should yield in NULL DB value if it's failing(i.e. istream::fail returns true)


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