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

#2583 Auto-complete fix (keystroke validation)

上级 d127d766
......@@ -290,7 +290,7 @@ public class SQLCompletionProcessor implements IContentAssistProcessor
{
boolean useKeystrokes = editor.getActivePreferenceStore().getBoolean(SQLPreferenceConstants.ENABLE_KEYSTROKE_ACTIVATION);
return useKeystrokes ?
".abcdefghijklmnopqrstuvwxyz_$".toCharArray() :
".abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$".toCharArray() :
new char[] {'.', };
}
......
......@@ -94,7 +94,7 @@ public class SQLCompletionProposal implements ICompletionProposal, ICompletionPr
this.replacementString = replacementString;
this.replacementFull = this.dataSource == null ?
replacementString :
DBUtils.getUnQuotedIdentifier(this.dataSource, replacementString);
DBUtils.getUnQuotedIdentifier(this.dataSource, replacementString.toLowerCase(Locale.ENGLISH)); // Convert to lower to compare IN VALIDATE FUNCTION
int divPos = this.replacementFull.lastIndexOf(syntaxManager.getStructSeparator());
if (divPos == -1) {
this.replacementLast = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册