Skip to content

Commit

Permalink
Firebird needs metadata changes to be committed
Browse files Browse the repository at this point in the history
Creating and dropping tables, etc. needs to be committed before it's
properly recognised by the Firebird DB engine
  • Loading branch information
blumf committed Apr 17, 2015
1 parent 976f58b commit 2b8d0d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/firebird.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ 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
Expand All @@ -13,3 +14,8 @@ function create_table ()
CONN:commit()
end

function drop_table ()
orig_drop_table()
CONN:commit()
end

0 comments on commit 2b8d0d6

Please sign in to comment.