Commit 591f8511 authored by Marcin Siodelski's avatar Marcin Siodelski

[#93,!35] Check for binding errors in the MySqlConnection class.

parent 6726e655
......@@ -354,6 +354,7 @@ public:
if (!in_bind_vec.empty()) {
// Bind parameters to the prepared statement.
status = mysql_stmt_bind_param(statements_[index], &in_bind_vec[0]);
checkError(status, index, "unable to bind parameters for select");
}
// Bind variables that will receive results as well.
......@@ -363,6 +364,7 @@ public:
}
if (!out_bind_vec.empty()) {
status = mysql_stmt_bind_result(statements_[index], &out_bind_vec[0]);
checkError(status, index, "unable to bind result parameters for select");
}
// Execute query.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment