mirror of
https://github.com/boostorg/mysql.git
synced 2026-01-30 20:12:17 +00:00
Added prepared statement close
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -74,10 +74,11 @@ int main()
|
||||
stream, "SELECT * from users WHERE age < ? and first_name <> ?");
|
||||
auto res = stmt.execute_with_cursor(2, 200, string_lenenc{"hola"});
|
||||
print(res);
|
||||
/*auto make_older = mysql::PreparedStatement::prepare(stream, "UPDATE users SET age = age + 1");
|
||||
auto make_older = mysql::PreparedStatement::prepare(stream, "UPDATE users SET age = age + 1");
|
||||
res = make_older.execute();
|
||||
print(res);
|
||||
res = stmt.execute_with_cursor(2, 40, string_lenenc{"hola"});
|
||||
make_older.close();
|
||||
res = stmt.execute_with_cursor(8, 70, string_lenenc{"hola"});
|
||||
cout << "\n\n";
|
||||
print(res);*/
|
||||
print(res);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user