From: Nathan Bird Date: Tue, 19 Jan 2010 18:59:52 +0000 (-0500) Subject: Mysql shouldn't segfault in database-query when running a command with no resultset. X-Git-Tag: v5.0.0~38 X-Git-Url: http://git.kpe.io/?a=commitdiff_plain;h=b46ac7dbb45a94f36d1cbd9b791df91b1d1af4ac;hp=b46ac7dbb45a94f36d1cbd9b791df91b1d1af4ac;p=clsql.git Mysql shouldn't segfault in database-query when running a command with no resultset. 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. ---