Skip to content

Commit 2038ca6

Browse files
claude[bot]penalosa
andcommitted
fix(wrangler): update D1 export tests to expect column names in INSERT statements
The dumpSql function now includes column names in INSERT statements. Updated test expectations to match the new format: - INSERT INTO "table" VALUES(...) → INSERT INTO "table" ("col1","col2") VALUES(...) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Somhairle MacLeòid <penalosa@users.noreply.github.com>
1 parent 3ce5eea commit 2038ca6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

packages/wrangler/src/__tests__/d1/export.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ describe("export", () => {
6060
const create_foo = "CREATE TABLE foo(id INTEGER PRIMARY KEY, value TEXT);";
6161
const create_bar = "CREATE TABLE bar(id INTEGER PRIMARY KEY, value TEXT);";
6262
const insert_foo = [
63-
`INSERT INTO "foo" VALUES(1,'xxx');`,
64-
`INSERT INTO "foo" VALUES(2,'yyy');`,
65-
`INSERT INTO "foo" VALUES(3,'zzz');`,
63+
`INSERT INTO "foo" ("id","value") VALUES(1,'xxx');`,
64+
`INSERT INTO "foo" ("id","value") VALUES(2,'yyy');`,
65+
`INSERT INTO "foo" ("id","value") VALUES(3,'zzz');`,
6666
];
6767
const insert_bar = [
68-
`INSERT INTO "bar" VALUES(1,'aaa');`,
69-
`INSERT INTO "bar" VALUES(2,'bbb');`,
70-
`INSERT INTO "bar" VALUES(3,'ccc');`,
68+
`INSERT INTO "bar" ("id","value") VALUES(1,'aaa');`,
69+
`INSERT INTO "bar" ("id","value") VALUES(2,'bbb');`,
70+
`INSERT INTO "bar" ("id","value") VALUES(3,'ccc');`,
7171
];
7272

7373
// Full export

0 commit comments

Comments
 (0)