From 7e3df96779a34701d0b02603ff162af1b48420ce Mon Sep 17 00:00:00 2001 From: scott Date: Mon, 26 Nov 2018 17:33:13 +0000 Subject: [PATCH] ODBC test wasn't closing cursor This resulted in an error deleting table the test referenced. --- tests/odbc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/odbc.lua b/tests/odbc.lua index 5e2a36b..59e490c 100644 --- a/tests/odbc.lua +++ b/tests/odbc.lua @@ -26,6 +26,8 @@ table.insert (EXTENSIONS, function () assert2 ("ABCDE", row.f2, "Wrong string representation") assert2 (true, row.f3, "Wrong bit representation") + cur:close() + -- Drops the table - assert2 (DROP_TABLE_RETURN_VALUE, CONN:execute("drop table test_dt") ) + assert2 (DROP_TABLE_RETURN_VALUE, CONN:execute("drop table test_dt") ) end)