Commit 05caf37b authored by Amadeu Andrade Barbosa Junior's avatar Amadeu Andrade Barbosa Junior
Browse files

OPENBUS-3045 Correção da ativação do PRAGMA foreign_keys

Conforme o pragma de
foreign_keys não pode ser ativado ou desativado numa transação.
parent dfc830e8
......@@ -369,9 +369,9 @@ local stmts = {}
function DataBase:__init()
local conn = self.conn
self:aexec("PRAGMA foreign_keys=ON;")
self:aexec("PRAGMA foreign_keys=ON;")
local pstmts = {}
for _, action in ipairs(actions) do
local sql = buildSQL(action)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment