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:
@@ -1182,7 +1182,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean visit(NotNullConstraint x) {
|
||||
public boolean visit(SQLNotNullConstraint x) {
|
||||
if (x.getName() != null) {
|
||||
print0(ucase ? "CONSTRAINT " : "constraint ");
|
||||
x.getName().accept(this);
|
||||
@@ -1192,7 +1192,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean visit(NullConstraint x) {
|
||||
public boolean visit(SQLNullConstraint x) {
|
||||
if (x.getName() != null) {
|
||||
print0(ucase ? "CONSTRAINT " : "constraint ");
|
||||
x.getName().accept(this);
|
||||
|
||||
@@ -245,9 +245,9 @@ public interface SQLASTVisitor {
|
||||
|
||||
void endVisit(SQLCreateViewStatement.Column x);
|
||||
|
||||
boolean visit(NotNullConstraint x);
|
||||
boolean visit(SQLNotNullConstraint x);
|
||||
|
||||
void endVisit(NotNullConstraint x);
|
||||
void endVisit(SQLNotNullConstraint x);
|
||||
|
||||
void endVisit(SQLMethodInvokeExpr x);
|
||||
|
||||
@@ -717,8 +717,8 @@ public interface SQLASTVisitor {
|
||||
|
||||
void endVisit(SQLErrorLoggingClause x);
|
||||
|
||||
boolean visit(NullConstraint x);
|
||||
boolean visit(SQLNullConstraint x);
|
||||
|
||||
void endVisit(NullConstraint x);
|
||||
void endVisit(SQLNullConstraint x);
|
||||
|
||||
}
|
||||
|
||||
@@ -352,11 +352,11 @@ public class SQLASTVisitorAdapter implements SQLASTVisitor {
|
||||
public void endVisit(SQLCreateViewStatement.Column x) {
|
||||
}
|
||||
|
||||
public boolean visit(NotNullConstraint x) {
|
||||
public boolean visit(SQLNotNullConstraint x) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void endVisit(NotNullConstraint x) {
|
||||
public void endVisit(SQLNotNullConstraint x) {
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1567,11 +1567,11 @@ public class SQLASTVisitorAdapter implements SQLASTVisitor {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean visit(NullConstraint x) {
|
||||
public boolean visit(SQLNullConstraint x) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void endVisit(NullConstraint x) {
|
||||
public void endVisit(SQLNullConstraint x) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user