bug fixed for 'null constraint' and 'default null'. issue #1349

This commit is contained in:
wenshao
2016-08-04 12:11:41 +08:00
parent 7fe5515c03
commit e75a304fe9
20 changed files with 77 additions and 81 deletions
@@ -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) {