Skip to content

Incorrect format call in stmt.lua bind function #186

Description

@Krause-a

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))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions