diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2016-11-18 18:27:01 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2016-11-18 18:29:03 +0100 |
commit | b16206845627c2bdcf2df7c5786680c9ba2f47da (patch) | |
tree | 3979fa24e5959e450566ea6e1279537a8bdf1898 | |
parent | 84fd0bc43ca522fb6e7709b0ff9894e78d4120bc (diff) | |
download | mariadb-git-b16206845627c2bdcf2df7c5786680c9ba2f47da.tar.gz |
Fixed embedded prepared statements.
-rw-r--r-- | sql/sql_prepare.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 414f5a4f5c2..97a33a5abc1 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -3063,7 +3063,11 @@ void mysqld_stmt_execute(THD *thd, char *packet_arg, uint packet_length) uchar *packet= (uchar*)packet_arg; // GCC 4.0.1 workaround ulong stmt_id= uint4korr(packet); ulong flags= (ulong) packet[4]; +#ifndef EMBEDDED_LIBRARY ulong iterations= uint4korr(packet + 5); +#else + ulong iterations= 0; // no support +#endif /* Query text for binary, general or slow log, if any of them is open */ String expanded_query; uchar *packet_end= packet + packet_length; |