Commit Graph

80 Commits (master)

Author SHA1 Message Date
Tomás Guisasola a6ad06d71b Add finalization test. 2020-09-08 11:38:29 -03:00
Tomás Guisasola acf8e021bf Adding cur:seek() method to MySQL driver. 2018-12-03 16:25:04 -02:00
Tomás Guisasola 48d33e4109 Merge branch 'master' of github.com:keplerproject/luasql 2018-12-03 16:22:56 -02:00
Tomás Guisasola 266c45336d Standardizing test files. 2018-12-03 16:22:40 -02:00
blumf 6ac4cba1e0
Merge pull request #98 from keplerproject/fb_proc_support
Added support for handling Procedures and Returning SQL
2018-11-27 16:40:18 +00:00
scott 3b7c0c0f37 ODBC test now uses prepared statements 2018-11-27 16:36:58 +00:00
scott 8215b59e66 ODBC test now uses params 2018-11-27 16:32:38 +00:00
scott 7e3df96779 ODBC test wasn't closing cursor
This resulted in an error deleting table the test referenced.
2018-11-26 17:33:13 +00:00
scott 7843cccc5e FB Proc Support Now Tests
Fixed the driver properly.
Added test case for procedure support.
Fixed drop table issue with FB.
2018-11-05 11:03:39 +00:00
Tomás Guisasola 63f6903b0c Adding client information when available. 2017-02-23 15:46:48 -03:00
Tomás Guisasola b862793c65 Correction in the definition of table engine: swaping old qualifier "TYPE" for "ENGINE". 2017-02-23 14:41:35 -03:00
Tomás Guisasola 89cc4db00f Test improvement: MySQL (at least) escapes ' as \' instead of ''. Accepting both forms. 2017-02-23 14:40:30 -03:00
Tomás Guisasola 0eb721c76c Improvement on driver loading (Lua 5.0).
Improvement on escape test.
2016-10-30 18:05:08 -02:00
Tomás Guisasola f704937a1a Adding test on the length of escaped strings. 2016-10-30 11:26:33 -02:00
Tomas Guisasola 4acc737e65 Improvement on compiler requirements from Postgres driver: it does not depend upon dynamic array allocation (which is not supported in all modern C compiler).
Generalizing tests to allow configuration of the database default username.
2016-03-28 09:16:46 -03:00
Tomás Guisasola b6f8685c18 Moving test of escape function to extensions (since it is not supported by all drivers). 2015-11-30 10:21:19 -02:00
jk77 cee9f8c6ba tests/odbc.lua - fixed typo in variable name
Fixed typo in DROP_TABLE_RETURN_VALUE variable name in assert2 statement on line 30.
2015-11-28 18:31:55 -08:00
blumf 2b8d0d6045 Firebird needs metadata changes to be committed
Creating and dropping tables, etc. needs to be committed before it's
properly recognised by the Firebird DB engine
2015-04-17 17:48:16 +01:00
Tomás Guisasola 3f4d7c191c Improve on driver-specific file loading. 2012-03-30 08:49:24 -03:00
Tomás Guisasola 7cc91e6a5a Adaptation to work with Lua 5.0, 5.1 and 5.2.
Incompatibility with previous versions: no more global luasql table defined; the modules/files return a table with the equivalent of luasql[driver] in previous versions.
2012-03-26 16:47:05 -03:00
blumf 835d0d499f Added flag to switch between direct table comparision and table content matching in the column_info test. 2008-06-30 10:43:03 +00:00
blumf f28dc70932 Added conn:escape function to Firebird driver
Updated test.lua script to only warn on lack of table reuse with the getcolname and getcoltype cursor functions.
2008-06-27 18:39:31 +00:00
tomas 3d82ecf79e Correction on validating the object 2008-05-31 14:06:19 +00:00
tomas 5df6526298 Simplifying the implementation of fetch_table. Adding some information to the test user. 2008-05-30 17:23:59 +00:00
blumf e0cb78af4e Modified the test script to handle DB engines that alter the case of field names
Added the Firebird test custom script
2008-05-30 15:53:44 +00:00
tomas 1f4dfb1740 Separating the __gc metamethod from the close method of objects. Improving fetch to close finished cursors. Test improvements accordingly. Some Firebird driver corrections -- it is not passing the tests 2008-05-04 02:46:17 +00:00
mascarenhas 9637b62ea0 conn:escape for sqlite, sqlite passes all tests 2008-02-18 05:20:34 +00:00
mascarenhas 7245302b99 mysql string escaping, mysql passes all tests 2008-02-18 05:12:02 +00:00
carregal e1f99daae1 Fix bug [#1770] Sqlite3 not passing all tests (found by Enrico Tassi)
Patch by Marc Nijdam
2007-10-16 15:42:50 +00:00
tomas 15c8293dc6 Adding function to escape strings and a test for it. Changing version to 2.1.0 2007-06-18 01:22:45 +00:00
tomas 2d6a09195a Correcting implementation of methods commit and rollback, to return a boolean. 2007-05-02 13:58:56 +00:00
mascarenhas 97c6b0e1f9 Added driver for SQLite Version 3y 2007-04-06 23:46:04 +00:00
tomas e00c33c287 Adding test to check whether the setautocommit method is return a boolean. Correcting drivers MySQL, Oracle, Postgres and SQLite 2007-03-09 14:56:20 +00:00
mascarenhas 88965d6a4c Added ado.lua test file for ADO. 2006-06-12 19:38:24 +00:00
carregal 3ecf6f15ba Correct the tests to run on SQLite 2 2006-05-31 21:43:33 +00:00
carregal f2c6fcb960 Correct the tests to run on Oracle OCI8 2006-05-31 21:43:15 +00:00
tomas e29c27d16a Improving error messages and finding the driver-specific test file. 2006-01-25 21:46:44 +00:00
tomas b1256ccfaa Adding test of method numrows. 2006-01-25 20:28:30 +00:00
tomas 47b1092bcc Adding test for data types managed by the driver. 2006-01-25 19:54:21 +00:00
tomas 2a84ca6c3d Adding test for driver extensions.
Adding test for numrows method.
2006-01-25 19:15:21 +00:00
tomas a861614daf Adding specific file for ODBC.
Adding configuration to some different return values of API functions.
2006-01-23 20:13:25 +00:00
tomas 1d2e800f51 Adding extension-methods to be tested 2006-01-16 22:24:03 +00:00
tomas 962115c76a Little improvements. 2006-01-16 21:49:56 +00:00
tomas 432e3b38ea Bug correction 2006-01-10 18:58:16 +00:00
tomas da25531dae MySQL versions 4.0.x do not implement rollback. 2006-01-10 18:34:54 +00:00
tomas 4f141c4ffb Adding mysql specific test. 2006-01-10 18:31:50 +00:00
tomas dcb0df8bfc Adding sqlite specific test. 2006-01-10 18:22:46 +00:00
tomas f2525ece27 Adding mechanism to load driver-specific tests/configurations 2006-01-10 18:16:01 +00:00
tomas c14c8cc3df Upgrade to LuaBinaries name for command line interpreter. 2006-01-10 17:36:54 +00:00
tomas 1cb276cda1 Correction on driver loading. 2005-06-05 00:47:26 +00:00