Skip to content

Commit bcd50c9

Browse files
committed
test(results): use direct connection for multistmt
1 parent 9bb3f73 commit bcd50c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@ res = DBInterface.execute(stmt) |> columntable
429429
res = DBInterface.execute(stmt)
430430
res = DBInterface.execute(stmt)
431431

432-
results = DBInterface.executemultiple(conn, "select * from Employee; select DeptNo, OfficeNo from Employee where OfficeNo IS NOT NULL")
432+
multi_conn = connect_mysql(db="mysqltest")
433+
results = DBInterface.executemultiple(multi_conn, "select * from Employee; select DeptNo, OfficeNo from Employee where OfficeNo IS NOT NULL")
433434
state = iterate(results)
434435
@test state !== nothing
435436
res, st = state
@@ -444,6 +445,7 @@ res, st = state
444445
@test length(res) == 4
445446
ret = columntable(res)
446447
@test length(ret[1]) == 4
448+
DBInterface.close!(multi_conn)
447449

448450
# multiple-queries not supported by mysql w/ prepared statements
449451
@test_throws MySQL.API.StmtError DBInterface.prepare(conn, "select * from Employee; select DeptNo, OfficeNo from Employee where OfficeNo IS NOT NULL")

0 commit comments

Comments
 (0)