Mysql shouldn't segfault in database-query when running a command with no resultset.
authorNathan Bird <nathan@acceleration.net>
Tue, 19 Jan 2010 18:59:52 +0000 (13:59 -0500)
committerNathan Bird <nathan@acceleration.net>
Mon, 1 Feb 2010 18:36:50 +0000 (13:36 -0500)
From docs at http://dev.mysql.com/doc/refman/5.0/en/mysql-real-query.html and
http://dev.mysql.com/doc/refman/5.0/en/mysql-field-count.html after performing the query
and attempting to get a result set, the RS ptr should be checked for null and
if it is check mysql_errno to see if there actually was an error, or just no result.

This patch makes database-query return NIL if there was no resultset.


No differences found