Browse Source

[FIX] hotfix in prepare() method

master
annelin 5 months ago
parent
commit
286b8ba5f8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      pg_tarantool/init.lua

+ 1
- 1
pg_tarantool/init.lua View File

@@ -25,7 +25,7 @@ end
----- sql prepared statements --
--
local function prepare(this, sql, persist) --
local function prepare_execute(s,...) return this.query(s.conn, 'execute '..s.uuid..'%s', {...}), (s.persist or s:deallocate()) end
local function prepare_execute(s,...) return this.query(s.conn, 'execute '..s.uuid..'%s',...), (s.persist or s:deallocate()) end
local function prepare_dealloc(s) this.query(s.conn, 'deallocate '..s.uuid) s.conn,s.execute,s.deallocate,s.__call=this.queue:put(s.conn),nil,nil,setmetatable(s,nil) end
local conn = this.queue:get() -- get connection from pool
local uuid = "pg_trntl_"..driver.uuid() -- uuid

Loading…
Cancel
Save