Skip to content

Commit b162068

Browse files
committed
Fixed embedded prepared statements.
1 parent 84fd0bc commit b162068

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sql/sql_prepare.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,7 +3063,11 @@ void mysqld_stmt_execute(THD *thd, char *packet_arg, uint packet_length)
30633063
uchar *packet= (uchar*)packet_arg; // GCC 4.0.1 workaround
30643064
ulong stmt_id= uint4korr(packet);
30653065
ulong flags= (ulong) packet[4];
3066+
#ifndef EMBEDDED_LIBRARY
30663067
ulong iterations= uint4korr(packet + 5);
3068+
#else
3069+
ulong iterations= 0; // no support
3070+
#endif
30673071
/* Query text for binary, general or slow log, if any of them is open */
30683072
String expanded_query;
30693073
uchar *packet_end= packet + packet_length;

0 commit comments

Comments
 (0)