mirror of
https://github.com/boostorg/mysql.git
synced 2026-01-28 07:22:26 +00:00
Added connection close to examples
This commit is contained in:
@@ -95,6 +95,9 @@ void main_impl(int argc, char** argv)
|
||||
assert(rows.size() == 1);
|
||||
[[maybe_unused]] auto salary = std::get<double>(rows[0].values()[0]);
|
||||
assert(salary == 10000);
|
||||
|
||||
// Notify the MySQL server we want to quit, then close the underlying connection.
|
||||
conn.close();
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user