mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-19838: fix of error messages
This commit is contained in:
@@ -3236,8 +3236,7 @@ void mysqld_stmt_execute(THD *thd, char *packet_arg, uint packet_length)
|
|||||||
|
|
||||||
if (packet_length < packet_min_lenght)
|
if (packet_length < packet_min_lenght)
|
||||||
{
|
{
|
||||||
my_error(ER_MALFORMED_PACKET, MYF(0), 0,
|
my_error(ER_MALFORMED_PACKET, MYF(0));
|
||||||
"", "mysqld_stmt_execute");
|
|
||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
}
|
}
|
||||||
ulong stmt_id= uint4korr(packet);
|
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,
|
if (stmt_execute_packet_sanity_check(stmt, packet, packet_end, bulk_op,
|
||||||
stmt_id == LAST_STMT_ID, read_types))
|
stmt_id == LAST_STMT_ID, read_types))
|
||||||
{
|
{
|
||||||
char llbuf[22];
|
my_error(ER_MALFORMED_PACKET, MYF(0));
|
||||||
my_error(ER_MALFORMED_PACKET, MYF(0), static_cast<int>(sizeof(llbuf)),
|
|
||||||
llstr(stmt_id, llbuf), "mysqld_stmt_execute");
|
|
||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user