Skip to content

Commit 58c5534

Browse files
nina-pymarijnh
authored andcommitted
Fixes #6331. Backticks are stripped from SQL query words before comparison
1 parent f3dde7c commit 58c5534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/hint/sql-hint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
function eachWord(lineText, f) {
188188
var words = lineText.split(/\s+/)
189189
for (var i = 0; i < words.length; i++)
190-
if (words[i]) f(words[i].replace(/[,;]/g, ''))
190+
if (words[i]) f(words[i].replace(/[`,;]/g, ''))
191191
}
192192

193193
function findTableByAlias(alias, editor) {

0 commit comments

Comments
 (0)