Skip to content

Commit

Permalink
fix failures of ps and ps_1general in --ps-protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Jan 27, 2016
1 parent 02cc921 commit eb15566
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions sql/sql_prepare.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1836,12 +1836,16 @@ static int mysql_test_show_create_table(Prepared_statement *stmt,
if (mysqld_show_create_get_fields(thd, tables, &fields, &buffer))
goto err_exit;

if (send_prep_stmt(stmt, fields.elements) ||
thd->protocol->send_result_set_metadata(&fields, Protocol::SEND_EOF) ||
thd->protocol->flush())
goto err_exit;
if (!stmt->is_sql_prepare())
{
if (send_prep_stmt(stmt, fields.elements) ||
thd->protocol->send_result_set_metadata(&fields, Protocol::SEND_EOF) ||
thd->protocol->flush())
goto err_exit;

DBUG_RETURN(2);
DBUG_RETURN(2);
}
DBUG_RETURN(0);

err_exit:
DBUG_RETURN(1);
Expand Down

0 comments on commit eb15566

Please sign in to comment.