From a1b413972d1ebfe6c998f576a357e7bfec06a464 Mon Sep 17 00:00:00 2001 From: tomas Date: Tue, 3 May 2005 12:40:31 +0000 Subject: [PATCH] Closing open connection. --- tests/test.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test.lua b/tests/test.lua index a0fbf04..8f113a8 100644 --- a/tests/test.lua +++ b/tests/test.lua @@ -457,8 +457,8 @@ function check_close() collectgarbage () CONN_OK (a.CONN) a.cur = cur - a.cur:close() - a.CONN:close() + a.cur:close() + a.CONN:close() cur = nil collectgarbage () assert2(nil, a.cur, "cursor not collected") @@ -473,13 +473,14 @@ function check_close() CUR_OK (cur) assert (cur:fetch(), "corrupted cursor") cur:close () + conn:close () end --------------------------------------------------------------------- --------------------------------------------------------------------- function drop_table () -- Postgres retorna 0, enquanto ODBC retorna -1. - CONN:setautocommit(true) + CONN:setautocommit(true) assert (CONN:execute ("drop table t")) end