sqlite.lua icon indicating copy to clipboard operation
sqlite.lua copied to clipboard

Incorrect format call in stmt.lua bind function

Open Krause-a opened this issue 5 months ago • 0 comments

In stmt.lua in the bind function on line 306 there is a call to format outside of the error call. error("sqlite.lua error at stmt:bind(), failed to bind a given value '%s'. Please report issue."):format(v) This ends up printing the literal "sqlite.lua error at stmt:bind(), failed to bind a given value '%s'. Please report issue." without the %s substitution. Suggested fix error(string.format("sqlite.lua error at stmt:bind(), failed to bind a given value '%s'. Please report issue.", v))

Krause-a avatar Aug 13 '25 23:08 Krause-a