Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

libamysql:set last_qry when failing to run statements with the wrong …

…number of paramaters
  • Loading branch information...
commit 6502cd5826a7ee52bf9abfc0bb40eeafb043523a 1 parent c7638d3
@till-varoquaux till-varoquaux authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  libamysql/mystmt.C
View
1  libamysql/mystmt.C
@@ -405,6 +405,7 @@ sth_parsed_t::execute2 (MYSQL_BIND *dummy, mybind_param_t **aarr, u_int n)
err = strbuf("cannot prepare query: wrong number of "
"input parameters (n = ")
<< n << ", n_iparam = " << n_iparam << ")";
+ last_qry = qry;
return false;
}
str q = make_query (aarr, n);
Please sign in to comment.
Something went wrong with that request. Please try again.