mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for 'null constraint' and 'default null'. issue #1349
This commit is contained in:
@@ -323,12 +323,8 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
|
||||
}
|
||||
|
||||
if (x.getDefaultExpr() != null) {
|
||||
if (x.getDefaultExpr() instanceof SQLNullExpr) {
|
||||
print0(ucase ? " NULL" : " null");
|
||||
} else {
|
||||
print0(ucase ? " DEFAULT " : " default ");
|
||||
x.getDefaultExpr().accept(this);
|
||||
}
|
||||
print0(ucase ? " DEFAULT " : " default ");
|
||||
x.getDefaultExpr().accept(this);
|
||||
}
|
||||
|
||||
if (x.getStorage() != null) {
|
||||
|
||||
Reference in New Issue
Block a user