Commit eb155661 authored by Sergei Golubchik's avatar Sergei Golubchik

fix failures of ps and ps_1general in --ps-protocol

parent 02cc921a
...@@ -1836,12 +1836,16 @@ static int mysql_test_show_create_table(Prepared_statement *stmt, ...@@ -1836,12 +1836,16 @@ static int mysql_test_show_create_table(Prepared_statement *stmt,
if (mysqld_show_create_get_fields(thd, tables, &fields, &buffer)) if (mysqld_show_create_get_fields(thd, tables, &fields, &buffer))
goto err_exit; goto err_exit;
if (!stmt->is_sql_prepare())
{
if (send_prep_stmt(stmt, fields.elements) || if (send_prep_stmt(stmt, fields.elements) ||
thd->protocol->send_result_set_metadata(&fields, Protocol::SEND_EOF) || thd->protocol->send_result_set_metadata(&fields, Protocol::SEND_EOF) ||
thd->protocol->flush()) thd->protocol->flush())
goto err_exit; goto err_exit;
DBUG_RETURN(2); DBUG_RETURN(2);
}
DBUG_RETURN(0);
err_exit: err_exit:
DBUG_RETURN(1); DBUG_RETURN(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment