-
Notifications
You must be signed in to change notification settings - Fork 161
Shouldn't statement->execute() set used to true? #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, and thanks. As far as i remember, reset will reset the bindings and if you want to reuse them, as is the case with prepared selects you might not want to use op++. |
Thanks for the quick reply. I guess my question wasn't too clear.
In the above code, if The destructor for |
Ok after thinking a bit about it (has been a few weeks since i wrote that). So go ahead pull the fix. |
@Killili no worries, thank you kindly. |
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 notstatement++
) does not set used to true? From the documentation and going by logic, I assumedexecute()
would execute the statement and set it to used.reset
would unbind parameters and setused
to false. But that's not the case since it remains "unused" even after explicitly executing and will run once more before destructing unlessused(false)
is manually called.Thanks.
The text was updated successfully, but these errors were encountered: