fix for a bug reported by blueBoy

This commit is contained in:
Miroslav Stampar
2011-08-20 20:08:11 +00:00
parent fb6a84b10b
commit 8a174248dc
3 changed files with 6 additions and 1 deletions
+3
View File
@@ -565,6 +565,9 @@ Brandon E. <[email protected]>
black zero <[email protected]>
for reporting a minor bug
blueBoy <[email protected]>
for reporting a bug
buawig <[email protected]>
for reporting considerable amount of bugs
+1 -1
View File
@@ -560,8 +560,8 @@ class Agent:
if limited:
inbandQuery += ",".join(map(lambda x: char if x != position else '(SELECT %s)' % query, range(0, count)))
inbandQuery = self.suffixQuery(inbandQuery, comment, suffix)
inbandQuery += FROM_TABLE.get(Backend.getIdentifiedDbms(), "")
inbandQuery = self.suffixQuery(inbandQuery, comment, suffix)
return inbandQuery
+2
View File
@@ -2352,6 +2352,8 @@ class Enumeration:
sqlType = None
getOutput = None
query = query.rstrip(';')
for sqlTitle, sqlStatements in SQL_STATEMENTS.items():
for sqlStatement in sqlStatements:
if query.lower().startswith(sqlStatement):