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

Skip to content

Shouldn't statement->execute() set used to true? #34

@mqudsi

Description

@mqudsi

Hello,

Thanks for this library, I just migrated a project over from CppSqlite (which I'd been maintaining) over to this.

I have a question on prepared statements - is there a reason manually calling execute on a statement (and not statement++) does not set used to true? From the documentation and going by logic, I assumed execute() would execute the statement and set it to used. reset would unbind parameters and set used to false. But that's not the case since it remains "unused" even after explicitly executing and will run once more before destructing unless used(false) is manually called.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions