reading a BIT field from a C++ application
Posted by: ross guecel
Date: November 11, 2012 11:00PM

Hello, I have field of type BIT(1), the query is made through C++ code.

From MySQL Workbench i am cabable to see the stored values, but not from code.

cout << "row[0] " << row[0] << " row[1] " << row[1] << endl;
row[1] value appears empty.

I tryed to cast

cout << "row[0] " << row[0] << " row[1] " << bool(row[1]) << endl;

And every value is 1, and it is wrong.

I know row is a string types.

I appreciate any suggestion,


Thanks and regards

Options: ReplyQuote


Subject
Views
Written By
Posted
reading a BIT field from a C++ application
1640
November 11, 2012 11:00PM


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.