You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALTERTABLE`sometable` MODIFY COLUMN `some_col`varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'comments' AFTER `other_col`
become
ALTERTABLE`sometable` MODIFY COLUMN `some_col`VARCHAR(1024) CHARACTER SET UTF8 COLLATE utf8_bin NOT NULL DEFAULT COMMENT AFTER `other_col`
after (*ast.AlterTableStmt).Restore(ctx *format.RestoreCtx), default value and comment value lost
change "github.com/pingcap/parser" test_driver to public or copy the implements to canal?
The text was updated successfully, but these errors were encountered:
AlterTableStmt is parsed from replication.QueryEvent, and send to eventHandler.OnDDL, use (*ast.AlterTableStmt).Restore(ctx *format.RestoreCtx) is easy to sync ddl to the target database when using canal
So where does go-mysql use (*ast.AlterTableStmt).Restore(ctx *format.RestoreCtx)? If it's used in your application, you can change your code rather than go-mysql
canal.valueExpr can't work
become
after (*ast.AlterTableStmt).Restore(ctx *format.RestoreCtx), default value and comment value lost
change "github.com/pingcap/parser" test_driver to public or copy the implements to canal?
The text was updated successfully, but these errors were encountered: