From a90b15837cb1a2138a07266cb8df42fcaa905229 Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Thu, 29 Oct 2020 22:20:21 +0100 Subject: MDEV-19838: fix of error messages --- sql/sql_prepare.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sql/sql_prepare.cc') diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 0df2617bb9a..11edd577309 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -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(sizeof(llbuf)), - llstr(stmt_id, llbuf), "mysqld_stmt_execute"); + my_error(ER_MALFORMED_PACKET, MYF(0)); DBUG_VOID_RETURN; } -- cgit v1.2.1