Skip to content

Commit 6083bfd

Browse files
committed
test: add default values expr
1 parent 0c333ea commit 6083bfd

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

internal/endtoend/testdata/insert_values/sqlite/go/query.sql.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/insert_values/sqlite/query.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
INSERT INTO foo (a, b) VALUES (?, ?);
33

44
/* name: InsertMultipleValues :exec */
5-
INSERT INTO foo (a, b) VALUES (?, ?), (?, ?);
5+
INSERT INTO foo (a, b) VALUES (?, ?), (?, ?);
6+
7+
/* name: InsertDefaultValues :exec */
8+
INSERT INTO foo DEFAULT VALUES;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
CREATE TABLE foo (a text, b integer);
1+
CREATE TABLE foo (a text, b integer default 100);
22

0 commit comments

Comments
 (0)