diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2020-10-29 22:20:21 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-10-29 22:20:21 +0100 |
commit | a90b15837cb1a2138a07266cb8df42fcaa905229 (patch) | |
tree | b72f8c354fd5e90f6edbb85755a6538de90f9eb4 /sql/sql_prepare.cc | |
parent | f9b0ee07ef066625403ef64bf3486c2db7baed10 (diff) | |
download | mariadb-git-a90b15837cb1a2138a07266cb8df42fcaa905229.tar.gz |
MDEV-19838: fix of error messages
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 7 |
1 files changed, 2 insertions, 5 deletions
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<int>(sizeof(llbuf)), - llstr(stmt_id, llbuf), "mysqld_stmt_execute"); + my_error(ER_MALFORMED_PACKET, MYF(0)); DBUG_VOID_RETURN; } |