Skip to content

Commit

Permalink
oltp_insert.lua: fix for opt.use_file : prevent string cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed Sep 23, 2022
1 parent d7c64d5 commit ef7fb9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lua/oltp_insert.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ function event()
end

con:query(string.format("INSERT INTO %s (id, k, c, pad) VALUES " ..
"(%d, %d, \"%s\", \"%s\")",
table_name, i, k_val, c_val, pad_val))
"(%d, %d, \"%s\", \"",
table_name, i, k_val, c_val) .. pad_val .. "\")")
end

check_reconnect()
Expand Down

0 comments on commit ef7fb9e

Please sign in to comment.