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
{{ message }}
Repository navigation
data branch protect snapshot insert breaks when source identifiers contain apostrophes #24925
When DATA BRANCH CREATE TABLE writes the branch-protect snapshot row into mo_snapshots, source account/database/table names are interpolated into a SQL string literal. If a legal identifier contains an apostrophe, the internal insert SQL is malformed.
Reproduce
dropdatabase if exists br_matrix_quoted;
createdatabasebr_matrix_quoted;
use br_matrix_quoted;
create table `quote'src`(a intprimary key, b varchar(20));\ninsert into `quote'src`values (1, 'single-quote');\ndata branch create table `quote'dst`from`quote'src`;\nselect count(*) from`quote'dst`;\n```\n\n## Expected behavior\n\nThe branch table should be created successfully and the branch-protect snapshot metadata insert should escape string literals correctly.\n\n## Notes\n\nThe branch-protect snapshot insert should escape single quotes in account/database/table names before embedding them in SQL string literals.
Activity
Ariznawlll commentedon Jun 11, 2026
Consolidated into #24924, which tracks the data branch quoted-identifier behavior bugs together.