mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Correct mysql stored keyword
This commit is contained in:
@@ -596,7 +596,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)) {
|
||||
|
||||
@@ -321,8 +321,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()) {
|
||||
|
||||
Reference in New Issue
Block a user