[autocomplete] Fix issue with parseError in the autocomplete parser
@@ -35,12 +35,13 @@ var SqlParseSupport = (function () {
parser.yy.selectListAliases = [];
parser.yy.latestTablePrimaries = [];
- parser.parseError = function (message, error) {
+ prioritizeSuggestions();
+ };
+
+ parser.yy.parseError = function (message, error) {
parser.yy.errors.push(error);
return message;
};
- prioritizeSuggestions();
- };
parser.addCommonTableExpressions = function (identifiers) {
parser.yy.result.commonTableExpressions = identifiers;
