Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Incorrect format call in stmt.lua bind function #186

@Krause-a

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

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