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

View File

@ -565,6 +565,9 @@ Brandon E. <brandonpoc@gmail.com>
black zero <timeisflowing@gmail.com> black zero <timeisflowing@gmail.com>
for reporting a minor bug for reporting a minor bug
blueBoy <blueboy4444@gmail.com>
for reporting a bug
buawig <buawig@gmail.com> buawig <buawig@gmail.com>
for reporting considerable amount of bugs for reporting considerable amount of bugs

View File

@ -560,8 +560,8 @@ class Agent:
if limited: if limited:
inbandQuery += ",".join(map(lambda x: char if x != position else '(SELECT %s)' % query, range(0, count))) 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 += FROM_TABLE.get(Backend.getIdentifiedDbms(), "")
inbandQuery = self.suffixQuery(inbandQuery, comment, suffix)
return inbandQuery return inbandQuery

View File

@ -2352,6 +2352,8 @@ class Enumeration:
sqlType = None sqlType = None
getOutput = None getOutput = None
query = query.rstrip(';')
for sqlTitle, sqlStatements in SQL_STATEMENTS.items(): for sqlTitle, sqlStatements in SQL_STATEMENTS.items():
for sqlStatement in sqlStatements: for sqlStatement in sqlStatements:
if query.lower().startswith(sqlStatement): if query.lower().startswith(sqlStatement):