提交 f238b8cc 编写于 作者: S serge-rider

#3572 SQL completion: special characters support


Former-commit-id: aec235ad
上级 e725aefb
......@@ -402,7 +402,9 @@ class SQLCompletionAnalyzer
if (quotes.indexOf(quotePair[1]) == -1) quotes.append('\\').append(quotePair[1]);
}
}
String tableNamePattern = "([\\p{L}0-9_$\\.\\-" + quotes.toString() + "]+)";
// Use silly pattern with all possible characters
// Valid regex for quote identifiers and FQ names is monstrous and very slow
String tableNamePattern = "([\\p{L}0-9_$§#@\\.\\-" + quotes.toString() + "]+)";
String structNamePattern;
if (CommonUtils.isEmpty(token)) {
structNamePattern = "(?:from|update|join|into)\\s*" + tableNamePattern;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册