Skip to content
Snippets Groups Projects
Commit b6a949e2 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Cray/ALPS - fix incorrect sanity check on MySQL return.

parent c5cc1b57
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,7 @@ MYSQL_STMT *prepare_stmt(MYSQL *handle, const char *query, ...@@ -189,7 +189,7 @@ MYSQL_STMT *prepare_stmt(MYSQL *handle, const char *query,
/* Verify the parameter count */ /* Verify the parameter count */
param_count = mysql_stmt_param_count(stmt); param_count = mysql_stmt_param_count(stmt);
if (nparams != nparams) { if (param_count != nparams) {
error("expected %lu parameters for \"%s\" but got %lu", error("expected %lu parameters for \"%s\" but got %lu",
nparams, query, param_count); nparams, query, param_count);
goto prepare_failed; goto prepare_failed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment