Skip to content

Commit d2a3c13

Browse files
committed
test: add test cases for NOT NULL columns
1 parent 7331e37 commit d2a3c13

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

internal/endtoend/testdata/emit_pointers_for_null_types/mysql/go/models.go

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

internal/endtoend/testdata/emit_pointers_for_null_types/mysql/sql/types.sql

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ CREATE TABLE dt_integer (
77
f bigint
88
);
99

10+
CREATE TABLE dt_integer_not_null (
11+
a tinyint not null,
12+
b smallint not null,
13+
c int not null,
14+
d integer not null,
15+
e mediumint not null,
16+
f bigint not null
17+
);
18+
1019
CREATE TABLE dt_unsigned_integer (
1120
a tinyint unsigned,
1221
b smallint unsigned,
@@ -15,3 +24,13 @@ CREATE TABLE dt_unsigned_integer (
1524
e mediumint unsigned,
1625
f bigint unsigned
1726
);
27+
28+
29+
CREATE TABLE dt_unsigned_integer_not_null (
30+
a tinyint unsigned not null,
31+
b smallint unsigned not null,
32+
c int unsigned not null,
33+
d integer unsigned not null,
34+
e mediumint unsigned not null,
35+
f bigint unsigned not null
36+
);

0 commit comments

Comments
 (0)