Skip to content

canal can't parse value of ddl #754

@BLAZZ

Description

@BLAZZ

canal.valueExpr can't work

ALTER TABLE `sometable` MODIFY COLUMN `some_col` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'comments' AFTER `other_col`

become

ALTER TABLE `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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions