Re: Unable to retrieve a BIT column without explicit casting
Posted by: Michael Rubin
Date: June 27, 2013 09:46PM

I was able to get it to work with the following code:

MYSQL_ROW row;
while ((row = mysql_fetch_row(pRes)) != NULL)
{
std::string s = (int)(*row[0]) == 1 ? "1" : "0";
}

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Unable to retrieve a BIT column without explicit casting
1692
June 27, 2013 09:46PM


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.