Adding extension-methods to be tested
This commit is contained in:
parent
962115c76a
commit
1d2e800f51
6
tests/oci8.lua
Normal file
6
tests/oci8.lua
Normal file
@ -0,0 +1,6 @@
|
||||
---------------------------------------------------------------------
|
||||
-- Oracle specific tests and configurations.
|
||||
-- $Id: oci8.lua,v 1.1 2006/01/16 22:24:03 tomas Exp $
|
||||
---------------------------------------------------------------------
|
||||
|
||||
table.insert (CUR_METHODS, "numrows")
|
6
tests/postgres.lua
Normal file
6
tests/postgres.lua
Normal file
@ -0,0 +1,6 @@
|
||||
---------------------------------------------------------------------
|
||||
-- PostgreSQL specific tests and configurations.
|
||||
-- $Id: postgres.lua,v 1.1 2006/01/16 22:24:03 tomas Exp $
|
||||
---------------------------------------------------------------------
|
||||
|
||||
table.insert (CUR_METHODS, "numrows")
|
@ -47,14 +47,17 @@ function test_object (obj, objmethods)
|
||||
return obj
|
||||
end
|
||||
|
||||
ENV_METHODS = { "close", "connect", }
|
||||
ENV_OK = function (obj)
|
||||
return test_object (obj, { "close", "connect", })
|
||||
return test_object (obj, ENV_METHODS)
|
||||
end
|
||||
CONN_METHODS = { "close", "commit", "execute", "rollback", "setautocommit", }
|
||||
CONN_OK = function (obj)
|
||||
return test_object (obj, { "close", "commit", "execute", "rollback", "setautocommit", })
|
||||
return test_object (obj, CONN_METHODS)
|
||||
end
|
||||
CUR_METHODS = { "close", "fetch", "getcolnames", "getcoltypes", }
|
||||
CUR_OK = function (obj)
|
||||
return test_object (obj, { "close", "fetch", "getcolnames", "getcoltypes", })
|
||||
return test_object (obj, CUR_METHODS)
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user