Re: Problem with MySQL function in C App
Posted by: Andrew Hutchings
Date: June 30, 2010 12:34AM

Hello Joe,

You aren't testing for any errors here. If you run it in gdb you should see that the most likely cause is there was some error in mysql_query. mysql_use_result will return 0 and mysql_fetch_row will segfault.

--
Andrew Hutchings, MySQL Senior Technical Support Engineer, Americas
Oracle Corporation UK Limited
http://www.mysql.com/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Problem with MySQL function in C App
381
June 30, 2010 12:34AM


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.