Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
connection::close_statement (1 of 2 overloads)

Closes a statement, deallocating it from the server.

Synopsis
void
close_statement(
    const statement& stmt,
    error_code& err,
    diagnostics& diag);
Description

After this operation succeeds, stmt must not be used again for execution.

Performance warning

This function is currently affected by a peformance issue described in https://github.com/boostorg/mysql/issues/181. Consider using reset_connection or async_reset_connection instead.

Preconditions

stmt.valid() == true


PrevUpHomeNext