Skip to content

Commit

Permalink
Merge pull request qgis#773 from slarosa/fix_8366
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 29, 2013
2 parents 8b41570 + 9cabd33 commit 3d6fd9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/db_manager/dlg_sql_window.py
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 3d6fd9a

Please sign in to comment.