File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ void main(string[] args)
11
11
Connection conn = new Connection(connectionStr);
12
12
scope (exit) conn.close();
13
13
14
- // Create the schema
14
+ // Create the schema (Would rather have `id` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT but for now just get tests working)
15
15
conn.exec(" CREATE TABLE IF NOT EXISTS `tablename` (
16
- `id` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT ,
16
+ `id` INTEGER,
17
17
`name` VARCHAR(250)
18
18
)" );
19
19
@@ -57,6 +57,7 @@ void main(string[] args)
57
57
conn.exec(
58
58
" INSERT INTO `tablename` (`id`, `name`) VALUES (?,?)" ,
59
59
null , " Cam" ); // Can also take Nullable!T
60
+
60
61
range = conn.query(" SELECT * FROM `tablename` WHERE `name`='Cam'" );
61
62
assert ( range.front[0 ].type == typeid (typeof (null )) );
62
63
}
You can’t perform that action at this time.
0 commit comments