extend on reset() vs clearBindings()

This commit is contained in:
bielow 2022-11-21 22:51:35 +01:00
parent ecc89c1f35
commit d416b40583
2 changed files with 5 additions and 2 deletions

View File

@ -86,7 +86,10 @@ public:
/// The finalization will be done by the destructor of the last shared pointer
~Statement() = default;
/// Reset the statement to make it ready for a new execution. Throws an exception on error.
/// Reset the statement to make it ready for a new execution by calling sqlite3_reset.
/// Throws an exception on error.
/// Call this function before any news calls to bind() if the statement was already executed before.
/// Calling reset() does not clear the bindings (see clearBindings()).
void reset();
/// Reset the statement. Returns the sqlite result code instead of throwing an exception on error.

View File

@ -43,7 +43,7 @@ Statement::Statement(Statement&& aStatement) noexcept :
aStatement.mbDone = false;
}
// Reset the statement to make it ready for a new execution (see also #clearBindings() bellow)
// Reset the statement to make it ready for a new execution (see also #clearBindings() below)
void Statement::reset()
{
const int ret = tryReset();