MySQL Forums
Forum List  »  Connector/C++

Re: Connector c++ 8 obtaining values from bit(1) or bit(n) fields.
Posted by: Luis Silva
Date: September 10, 2021 07:11AM

Hi Claude,

I am afraid you hit a bug on DevAPI implementation...

Bug is reported.

Probably best way to retrieve the BIT() is to cast is as UNSIGNED:

cast(bit as UNSIGNED)

And then get get<unsigned>() from Value.

Hope it helps.

Cheers,
Luís

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Connector c++ 8 obtaining values from bit(1) or bit(n) fields.
210
September 10, 2021 07:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.