-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cdc sync table error while using NO_BACKSLASH_ESCAPES
SQL mode
#37910
Comments
The issue is that the |
@aytrack could you please also test |
binlog has the same issue. It about the set sql_mode = "NO_BACKSLASH_ESCAPES";
create table t002(id bigint primary key, a varchar(100), b varchar(20) as (a like "\\c"));
set sql_mode = "";
create table t001(id bigint primary key,a varchar(100), b varchar(20) as (a like "\\c")); downstream mysql root@127.0.0.1:reg3> show create table t002\G
***************************[ 1. row ]***************************
Table | t002
Create Table | CREATE TABLE `t002` (
`id` bigint(20) NOT NULL,
`a` varchar(100) DEFAULT NULL,
`b` varchar(20) GENERATED ALWAYS AS (`a` like _utf8mb4'\\c') VIRTUAL, -- should be `b` varchar(20) GENERATED ALWAYS AS (`a` like _utf8'\\\\c') VIRTUAL,
PRIMARY KEY (`id`) /*T![clustered_index] CLUSTERED */
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
1 row in set
Time: 0.002s
mysql root@127.0.0.1:reg3> show create table t001\G
***************************[ 1. row ]***************************
Table | t001
Create Table | CREATE TABLE `t001` (
`id` bigint(20) NOT NULL,
`a` varchar(100) DEFAULT NULL,
`b` varchar(20) GENERATED ALWAYS AS (`a` like _utf8mb4'\\c') VIRTUAL,
PRIMARY KEY (`id`) /*T![clustered_index] CLUSTERED */
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
1 row in set |
I think it's a sql mode related bug, so remove execution label. |
/assign |
/unassign |
/label component/ticdc |
@CbcWestwolf: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Since this issue has been moved to pingcap/tiflow#7142, I'll close it. |
/close |
@CbcWestwolf: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
tidb
The text was updated successfully, but these errors were encountered: