Skip to content

Commit 2d7e813

Browse files
claude[bot]penalosa
authored 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 b225bb5 commit 2d7e813

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
@@ -73,14 +73,14 @@ describe("export", () => {
7373
const create_foo = "CREATE TABLE foo(id INTEGER PRIMARY KEY, value TEXT);";
7474
const create_bar = "CREATE TABLE bar(id INTEGER PRIMARY KEY, value TEXT);";
7575
const insert_foo = [
76-
`INSERT INTO "foo" VALUES(1,'xxx');`,
77-
`INSERT INTO "foo" VALUES(2,'yyy');`,
78-
`INSERT INTO "foo" VALUES(3,'zzz');`,
76+
`INSERT INTO "foo" ("id","value") VALUES(1,'xxx');`,
77+
`INSERT INTO "foo" ("id","value") VALUES(2,'yyy');`,
78+
`INSERT INTO "foo" ("id","value") VALUES(3,'zzz');`,
7979
];
8080
const insert_bar = [
81-
`INSERT INTO "bar" VALUES(1,'aaa');`,
82-
`INSERT INTO "bar" VALUES(2,'bbb');`,
83-
`INSERT INTO "bar" VALUES(3,'ccc');`,
81+
`INSERT INTO "bar" ("id","value") VALUES(1,'aaa');`,
82+
`INSERT INTO "bar" ("id","value") VALUES(2,'bbb');`,
83+
`INSERT INTO "bar" ("id","value") VALUES(3,'ccc');`,
8484
];
8585

8686
// Full export

0 commit comments

Comments
 (0)