Commit a90b1583 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

MDEV-19838: fix of error messages

parent f9b0ee07
......@@ -3236,8 +3236,7 @@ void mysqld_stmt_execute(THD *thd, char *packet_arg, uint packet_length)
if (packet_length < packet_min_lenght)
{
my_error(ER_MALFORMED_PACKET, MYF(0), 0,
"", "mysqld_stmt_execute");
my_error(ER_MALFORMED_PACKET, MYF(0));
DBUG_VOID_RETURN;
}
ulong stmt_id= uint4korr(packet);
......@@ -3427,9 +3426,7 @@ static void mysql_stmt_execute_common(THD *thd,
if (stmt_execute_packet_sanity_check(stmt, packet, packet_end, bulk_op,
stmt_id == LAST_STMT_ID, read_types))
{
char llbuf[22];
my_error(ER_MALFORMED_PACKET, MYF(0), static_cast<int>(sizeof(llbuf)),
llstr(stmt_id, llbuf), "mysqld_stmt_execute");
my_error(ER_MALFORMED_PACKET, MYF(0));
DBUG_VOID_RETURN;
}
......
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