[Mysql-cocoa-users] Detecting Query Errors
Brought to you by:
sergecohen
|
From: Aaron J. <aj...@ed...> - 2004-07-09 15:51:57
|
Using SMySQL, what's the proper way to detect when the MySQL server has
raised an error after you issue a query? In the straight-up C API I
have done:
if (mysql_query(handle, query_string))
{
// We have an error
}
else
{
// We're good to go
}
But from examining the source code for MCPConnection it looks as if
whenever there's a query error all that happens is the error code and
string are outputted with NSLog and an empty result is returned. How
can you distinguish this from a result of a query that just has an
empty result set? This isn't obvious to me from the documentation.
Thanks,
Aaron Jacobs
aj...@ed...
|