Skip to content

Commit 9cabd33

Browse files
committedJul 28, 2013
Fix #8366
1 parent 98be7a4 commit 9cabd33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/db_manager/dlg_sql_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ def fillColumnCombos(self):
225225
aliasIndex = 0
226226
while True:
227227
alias = "_%s__%d" % ("subQuery", aliasIndex)
228-
escaped = '\\b("?)' + QRegExp.escape(alias) + '\\1\\b'
229-
if not query.contains( QRegExp(escaped, Qt.CaseInsensitive) ):
228+
escaped = re.compile('\\b("?)' + re.escape(alias) + '\\1\\b')
229+
if not escaped.search(query):
230230
break
231231
aliasIndex += 1
232232

0 commit comments

Comments
 (0)
Please sign in to comment.