Minor bug fix

This commit is contained in:
Bernardo Damele 2008-12-21 16:39:40 +00:00
parent 374b9ba878
commit f92b76a8b0

View File

@ -1041,7 +1041,7 @@ class Enumeration:
def sqlQuery(self, query): def sqlQuery(self, query):
output = None output = None
selectQuery = False selectQuery = True
sqlType = None sqlType = None
for sqlTitle, sqlStatements in SQL_STATEMENTS.items(): for sqlTitle, sqlStatements in SQL_STATEMENTS.items():
@ -1049,8 +1049,8 @@ class Enumeration:
if query.lower().startswith(sqlStatement): if query.lower().startswith(sqlStatement):
sqlType = sqlTitle sqlType = sqlTitle
if sqlTitle == "SQL SELECT statement": if sqlTitle != "SQL SELECT statement":
selectQuery = True selectQuery = False
break break