I am issuing the command
Code:
SELECT col_name from table_name
via the mysql C API.
All is well if table_name is found in the currently connected database,but there may be an instance in my program where table_name is not found.
mysql_store_result is returning 0xffffffff when the table name "table_name" is not found.
I was under the impression it should return NULL.
Thus the invalid address of 0xffffffff is causing my program to seg fault because 0xffffffff is non zero and thus is not picked up by the code as it is written att.
shouldn't the result structure be NULL in this scenario?
Or does the API just check for sql sytax errors?
Thnks
Robert