mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2025-02-23 11:51:10 +00:00
libs: updated to latest LuaSQL
This commit is contained in:
parent
7254ebe94b
commit
cfdf248d8b
8 changed files with 20 additions and 16 deletions
|
@ -1,22 +1,14 @@
|
|||
LuaSQL 2.1 - This is a copy of commit/9ddfc9fb1c1ccdd204c059197724ac1f08e5a1be https://github.com/keplerproject/luasql
|
||||
|
||||
http://www.keplerproject.org/luasql/
|
||||
LuaSQL - This is a copy of commit/6485f4845ce955bb9d5227cdba12aa90dd241f70
|
||||
http://keplerproject.github.io/luasql/doc/us/
|
||||
|
||||
LuaSQL is a simple interface from Lua to a DBMS. It enables a Lua program to:
|
||||
|
||||
* Connect to ODBC, ADO, Oracle, MySQL, SQLite and PostgreSQL databases;
|
||||
* Connect to ODBC, ADO, Oracle, MySQL, SQLite, Firebird and PostgreSQL databases;
|
||||
* Execute arbitrary SQL statements;
|
||||
* Retrieve results in a row-by-row cursor fashion.
|
||||
|
||||
LuaSQL is free software and uses the same license as Lua 5.1.
|
||||
|
||||
|
||||
Source code for LuaSQL can be downloaded from the LuaForge page.
|
||||
|
||||
If you are using LuaBinaries a Windows binary version of LuaSQL can be found at the same LuaForge page.
|
||||
|
||||
LuaSQL 2.1.1 [29/Oct/2007]
|
||||
* Fixed a bug in the SQLite3 error handling (patch by David Burgess)
|
||||
* Fixed bug [#1834] for SQLite 3 (found by Savin Zlobec, patch by Marc Nijdam)
|
||||
* Fixed bug [#1770] for SQLite 3 (found by Enrico Tassi, patch by Marc Nijdam)
|
||||
Source code for LuaSQL can be downloaded from its GitHub repository.
|
||||
|
||||
|
|
|
@ -19,3 +19,5 @@ function drop_table ()
|
|||
CONN:commit()
|
||||
end
|
||||
|
||||
table.insert (CONN_METHODS, "escape")
|
||||
table.insert (EXTENSIONS, escape)
|
||||
|
|
|
@ -7,6 +7,8 @@ QUERYING_STRING_TYPE_NAME = "binary(65535)"
|
|||
|
||||
table.insert (CUR_METHODS, "numrows")
|
||||
table.insert (EXTENSIONS, numrows)
|
||||
table.insert (CONN_METHODS, "escape")
|
||||
table.insert (EXTENSIONS, escape)
|
||||
|
||||
---------------------------------------------------------------------
|
||||
-- Build SQL command to create the test table.
|
||||
|
|
|
@ -27,5 +27,5 @@ table.insert (EXTENSIONS, function ()
|
|||
assert2 (true, row.f3, "Wrong bit representation")
|
||||
|
||||
-- Drops the table
|
||||
assert2 (DROP_TABLE_RETURN_VALUE0, CONN:execute("drop table test_dt") )
|
||||
assert2 (DROP_TABLE_RETURN_VALUE, CONN:execute("drop table test_dt") )
|
||||
end)
|
||||
|
|
|
@ -5,3 +5,5 @@
|
|||
|
||||
table.insert (CUR_METHODS, "numrows")
|
||||
table.insert (EXTENSIONS, numrows)
|
||||
table.insert (CONN_METHODS, "escape")
|
||||
table.insert (EXTENSIONS, escape)
|
||||
|
|
|
@ -14,4 +14,7 @@ end
|
|||
|
||||
function checkUnknownDatabase(ENV)
|
||||
-- skip this test
|
||||
end
|
||||
end
|
||||
|
||||
table.insert (CONN_METHODS, "escape")
|
||||
table.insert (EXTENSIONS, escape)
|
||||
|
|
|
@ -16,4 +16,7 @@ end
|
|||
|
||||
function checkUnknownDatabase(ENV)
|
||||
-- skip this test
|
||||
end
|
||||
end
|
||||
|
||||
table.insert (CONN_METHODS, "escape")
|
||||
table.insert (EXTENSIONS, escape)
|
||||
|
|
|
@ -499,6 +499,7 @@ end
|
|||
function escape ()
|
||||
local escaped = CONN:escape"a'b'c'd"
|
||||
assert ("a\\'b\\'c\\'d" == escaped or "a''b''c''d" == escaped)
|
||||
io.write (" escape")
|
||||
end
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
@ -644,7 +645,6 @@ tests = {
|
|||
{ "fetch many", fetch_many },
|
||||
{ "rollback", rollback },
|
||||
{ "get column information", column_info },
|
||||
{ "escape", escape },
|
||||
{ "extensions", extensions_test },
|
||||
{ "close objects", check_close },
|
||||
{ "drop table", drop_table },
|
||||
|
|
Loading…
Reference in a new issue