mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
A fix for Bug#7365 "embedded server for MacOS: problem with prepared
statements": no test case, the test case is there already, libmysqld/examples/client_test.c, we just need to run it on a daily basis.
This commit is contained in:
@ -219,12 +219,13 @@ static my_bool emb_mysql_read_query_result(MYSQL *mysql)
|
|||||||
static int emb_stmt_execute(MYSQL_STMT *stmt)
|
static int emb_stmt_execute(MYSQL_STMT *stmt)
|
||||||
{
|
{
|
||||||
DBUG_ENTER("emb_stmt_execute");
|
DBUG_ENTER("emb_stmt_execute");
|
||||||
|
char header[4];
|
||||||
|
int4store(header, stmt->stmt_id);
|
||||||
THD *thd= (THD*)stmt->mysql->thd;
|
THD *thd= (THD*)stmt->mysql->thd;
|
||||||
thd->client_param_count= stmt->param_count;
|
thd->client_param_count= stmt->param_count;
|
||||||
thd->client_params= stmt->params;
|
thd->client_params= stmt->params;
|
||||||
if (emb_advanced_command(stmt->mysql, COM_EXECUTE,0,0,
|
if (emb_advanced_command(stmt->mysql, COM_EXECUTE,0,0,
|
||||||
(const char*)&stmt->stmt_id,sizeof(stmt->stmt_id),
|
header, sizeof(header), 1) ||
|
||||||
1) ||
|
|
||||||
emb_mysql_read_query_result(stmt->mysql))
|
emb_mysql_read_query_result(stmt->mysql))
|
||||||
{
|
{
|
||||||
NET *net= &stmt->mysql->net;
|
NET *net= &stmt->mysql->net;
|
||||||
|
Reference in New Issue
Block a user