Correct mysql stored keyword

This commit is contained in:
sunsun314
2019-02-05 19:20:12 +08:00
parent 2245a6e451
commit 3c73b18a0f
3 changed files with 9 additions and 9 deletions
@@ -45,7 +45,7 @@ public class SQLColumnDefinition extends SQLObjectImpl implements SQLTableElemen
protected SQLExpr storage;
protected SQLExpr charsetExpr;
protected SQLExpr asExpr;
protected boolean sorted = false;
protected boolean stored = false;
protected boolean virtual = false;
protected Identity identity;
@@ -208,12 +208,12 @@ public class SQLColumnDefinition extends SQLObjectImpl implements SQLTableElemen
this.virtual = virtual;
}
public boolean isSorted() {
return sorted;
public boolean isStored() {
return stored;
}
public void setSorted(boolean sorted) {
this.sorted = sorted;
public void setStored(boolean stored) {
this.stored = stored;
}
public SQLExpr getCharsetExpr() {
@@ -387,7 +387,7 @@ public class SQLColumnDefinition extends SQLObjectImpl implements SQLTableElemen
x.setAsExpr(asExpr.clone());
}
x.sorted = sorted;
x.stored = stored;
x.virtual = virtual;
if (identity != null) {
@@ -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()) {