Merge pull request #3065 from sunsun314/stored-correct

Correct mysql `stored` keyword
This commit is contained in:
温绍锦
2019-02-26 14:47:18 +08:00
committed by GitHub
3 changed files with 9 additions and 9 deletions
@@ -609,7 +609,7 @@ public class MySqlExprParser extends SQLExprParser {
if (lexer.identifierEquals(FnvHash.Constants.STORED)) {
lexer.nextToken();
column.setSorted(true);
column.setStored(true);
}
if (lexer.identifierEquals(FnvHash.Constants.VIRTUAL)) {
@@ -458,8 +458,8 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
print(')');
}
if (x.isSorted()) {
print0(ucase ? " SORTED" : " sorted");
if (x.isStored()) {
print0(ucase ? " STORED" : " stored");
}
if (x.isVirtual()) {