luasql/tests/firebird.lua
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

22 lines
514 B
Lua

DEFINITION_STRING_TYPE_NAME = "VARCHAR(80)"
QUERYING_STRING_TYPE_NAME = "string"
CHECK_GETCOL_INFO_TABLES = false
local orig_create_table = create_table
local orig_drop_table = drop_table
---------------------------------------------------------------------
-- New metadata needs to be commited before it is used
---------------------------------------------------------------------
function create_table ()
orig_create_table()
CONN:commit()
end
function drop_table ()
orig_drop_table()
CONN:commit()
end