-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4095 from WillsonYip/mysql8_check_fix
support parsing mysql 8 check related DDL statement #4089
- Loading branch information
Showing
6 changed files
with
396 additions
and
14 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...ain/java/com/alibaba/druid/sql/dialect/mysql/ast/statement/MysqlAlterTableAlterCheck.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.alibaba.druid.sql.dialect.mysql.ast.statement; | ||
|
||
import com.alibaba.druid.sql.ast.SQLName; | ||
import com.alibaba.druid.sql.ast.statement.SQLAlterTableItem; | ||
import com.alibaba.druid.sql.dialect.mysql.ast.MySqlObjectImpl; | ||
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor; | ||
|
||
public class MysqlAlterTableAlterCheck extends MySqlObjectImpl implements SQLAlterTableItem { | ||
|
||
private SQLName name; | ||
private Boolean enforced; | ||
|
||
@Override | ||
public void accept0(MySqlASTVisitor visitor) { | ||
if (visitor.visit(this)) { | ||
if (getName() != null) { | ||
getName().accept(visitor); | ||
} | ||
} | ||
visitor.endVisit(this); | ||
} | ||
|
||
public SQLName getName() { | ||
return name; | ||
} | ||
|
||
public void setName(SQLName name) { | ||
this.name = name; | ||
} | ||
|
||
public Boolean getEnforced() { | ||
return enforced; | ||
} | ||
|
||
public void setEnforced(Boolean enforced) { | ||
this.enforced = enforced; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.