Skip to content

Commit

Permalink
Removed SET autocommit like query when using pgsql since the `autoc…
Browse files Browse the repository at this point in the history
…ommit` parameter is no longer supported in newer version of pgsql.
  • Loading branch information
UncooleBen committed May 14, 2020
1 parent a058f40 commit a484562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tpcc_common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ function load_tables(drv, con, warehouse_num)
local extra_table_options = ""
local query

con:query("SET autocommit=1")
if drv:name() == "mysql" then
con:query("SET autocommit=1")
end

-- print(string.format("Creating warehouse: %d\n", warehouse_num))

Expand Down

0 comments on commit a484562

Please sign in to comment.