MySQL Forums
Forum List  »  Newbie

mysql++ res.size() exception
Posted by: Ryan Greene
Date: May 02, 2005 03:22PM

I am using VC++ 6.0 and mysql++ v1.7.1 and mysql v4.0.18
When I check the number of rows changed by calling res.size(), i get and exception error referring to the libmysql.dll.
This will only happen when I update or insert into the database. If I issue a SELECT query, this problem doesn't show up. I know that the query syntax is correct... I can issue a SELECT query and get the updated or inserted values.

Ideas?
Ryan

snippet:
Query query = con.query();
query << "update " << field << "set " << set_p << "where " << where << ";";

query.preview();

res = query.store();

if (res.size() >= 0) // crashes here
{
return true;
}
else
{
return false;
}

Options: ReplyQuote


Subject
Written By
Posted
mysql++ res.size() exception
May 02, 2005 03:22PM


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.