mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
+2
-2
@@ -1592,7 +1592,7 @@ public class OracleStatementParser extends SQLStatementParser {
|
||||
lexer.nextToken();
|
||||
if (lexer.token() == Token.CONSTRAINT) {
|
||||
lexer.nextToken();
|
||||
SQLAlterTableEnableConstraint item = new SQLAlterTableEnableConstraint();
|
||||
SQLAlterTableDisableConstraint item = new SQLAlterTableDisableConstraint();
|
||||
item.setConstraintName(this.exprParser.name());
|
||||
stmt.addItem(item);
|
||||
} else {
|
||||
@@ -1602,7 +1602,7 @@ public class OracleStatementParser extends SQLStatementParser {
|
||||
lexer.nextToken();
|
||||
if (lexer.token() == Token.CONSTRAINT) {
|
||||
lexer.nextToken();
|
||||
SQLAlterTableDisableConstraint item = new SQLAlterTableDisableConstraint();
|
||||
SQLAlterTableEnableConstraint item = new SQLAlterTableEnableConstraint();
|
||||
item.setConstraintName(this.exprParser.name());
|
||||
stmt.addItem(item);
|
||||
} else {
|
||||
|
||||
@@ -1250,7 +1250,7 @@ public class OracleOutputVisitor extends SQLASTOutputVisitor implements OracleAS
|
||||
|
||||
print0(ucase ? "RENAME " : "rename ");
|
||||
x.getName().accept(this);
|
||||
print0(ucase ? " TO " : "to ");
|
||||
print0(ucase ? " TO " : " to ");
|
||||
to.accept(this);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user