Skip to content

Commit

Permalink
Fix #8366
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jul 28, 2013
1 parent 98be7a4 commit 9cabd33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/db_manager/dlg_sql_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ def fillColumnCombos(self):
aliasIndex = 0
while True:
alias = "_%s__%d" % ("subQuery", aliasIndex)
escaped = '\\b("?)' + QRegExp.escape(alias) + '\\1\\b'
if not query.contains( QRegExp(escaped, Qt.CaseInsensitive) ):
escaped = re.compile('\\b("?)' + re.escape(alias) + '\\1\\b')
if not escaped.search(query):
break
aliasIndex += 1

Expand Down

0 comments on commit 9cabd33

Please sign in to comment.