329329DBInterface. execute (stmt, [missing , missing , missing , missing , missing , missing , missing , missing , missing , DateTime (" 2015-09-05T12:31:30" ), missing , missing , missing , missing , missing ])
330330DBInterface. close! (stmt)
331331
332+ DBInterface. execute (conn, " CREATE TABLE NullBindingTest (value INT NULL)" )
333+ stmt = DBInterface. prepare (conn, " INSERT INTO NullBindingTest (value) VALUES (?)" )
334+ DBInterface. execute (stmt, (nothing ,))
335+ DBInterface. execute (stmt, (1 ,))
336+ DBInterface. execute (stmt, (missing ,))
337+ DBInterface. close! (stmt)
338+ res = DBInterface. execute (conn, " SELECT value FROM NullBindingTest" ) |> columntable
339+ @test isequal (res. value, [missing , 1 , missing ])
340+
332341stmt = DBInterface. prepare (conn, " select * from Employee" )
333342res = DBInterface. execute (stmt) |> columntable
334343DBInterface. close! (stmt)
@@ -511,7 +520,7 @@ ret = columntable(res)
511520
512521 try
513522 # happy path
514- DBInterface. transaction (conn) do
523+ result = DBInterface. transaction (conn) do
515524 DBInterface. execute (conn, " INSERT INTO TransactionTest (a) VALUES (1)" )
516525
517526 # we can see the result inside our transaction
@@ -521,7 +530,9 @@ ret = columntable(res)
521530 # and can't see it outside our transaction
522531 result = DBInterface. execute (conn2, " SELECT * FROM TransactionTest" ) |> Tables. columntable
523532 @test isempty (result. a)
533+ return 42
524534 end
535+ @test result == 42
525536 result = DBInterface. execute (conn, " SELECT * FROM TransactionTest" ) |> Tables. columntable
526537 @test result. a == [1 ]
527538 result = DBInterface. execute (conn2, " SELECT * FROM TransactionTest" ) |> Tables. columntable
0 commit comments