Skip to content

Commit

Permalink
fix: wfront failed
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper00 committed May 16, 2024
1 parent 9a60689 commit 603d237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lualib/moon/db/pg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ local function format_query_result(row_desc, data_rows, command_complete)
end

function pg.pack_query_buffer(buf)
wfront(buf, MSG_TYPE.query, strpack(">I", bsize(buf)+5))
wback(buf, NULL)
wfront(buf, MSG_TYPE.query, strpack(">I", bsize(buf)+4))
end

---@param sql buffer_shr_ptr|string
Expand Down

0 comments on commit 603d237

Please sign in to comment.