Merge branch '10.1' into 10.2

This commit is contained in:
Sergei Golubchik 2016-09-09 08:33:08 +02:00
commit 06b7fce9f2
579 changed files with 9027 additions and 4824 deletions

View file

@ -334,6 +334,12 @@ static int emb_stmt_execute(MYSQL_STMT *stmt)
THD *thd;
my_bool res;
if (stmt->param_count && !stmt->bind_param_done)
{
set_stmt_error(stmt, CR_PARAMS_NOT_BOUND, unknown_sqlstate, NULL);
DBUG_RETURN(1);
}
int4store(header, stmt->stmt_id);
header[4]= (uchar) stmt->flags;
thd= (THD*)stmt->mysql->thd;