Skip to content

Commit a982106

Browse files
committed
returns ddl structure if not create table statement
1 parent 7e8b4b1 commit a982106

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sqlparser/type_converter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func convertTiDBStmtToVitessStmt(stmts []ast.StmtNode, ddl *DDL) Statement {
2525
case *ast.CreateTableStmt:
2626
return convertFromCreateTableStmt(ddlStmt, ddl)
2727
default:
28+
return ddl
2829
}
2930
}
3031
return nil

0 commit comments

Comments
 (0)