Skip to content

Commit 694b13c

Browse files
author
Daniel Kinzler
committed
fix mysql_query_value for missing values
git-svn-id: https://svn.toolserver.org/svnroot/daniel/duesenstuff/trunk/gpClient@596 9f2c43bc-b3c0-43f4-b155-41619b16f219
1 parent 26ef41c commit 694b13c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/gp/mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def mysql_select_db ( self, db ):
580580
def mysql_query_value (self, sql ):
581581
r = self.mysql_query_record( sql )
582582

583-
if ( not 1 ): return None
583+
if not r: return None
584584
else: return r[0]
585585

586586
def mysql_query_record (self, sql ):

0 commit comments

Comments
 (0)