2
0
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:
ruben
2019-09-08 12:13:55 +01:00
parent 20f00e4c0e
commit 2bf1adf5eb
6 changed files with 28 additions and 6 deletions

View File

@@ -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);
}