mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 02:47:37 +02:00
Fix for not to assert in DBUG mode when the result type is INT24 as data is sent in INT32 format
(normal protocol only, prepared protocol already handles it) sql/protocol.cc: Fix for not to assert in DBUG mode when the result type is INT24 as data is sent in INT32 format
This commit is contained in:
parent
13d28097e7
commit
892879901e
1 changed files with 3 additions and 1 deletions
|
|
@ -742,7 +742,9 @@ bool Protocol_simple::store_short(longlong from)
|
|||
bool Protocol_simple::store_long(longlong from)
|
||||
{
|
||||
#ifndef DEBUG_OFF
|
||||
DBUG_ASSERT(field_types == 0 || field_types[field_pos++] == MYSQL_TYPE_LONG);
|
||||
DBUG_ASSERT(field_types == 0 ||
|
||||
field_types[field_pos++] == MYSQL_TYPE_INT24 ||
|
||||
field_types[field_pos++] == MYSQL_TYPE_LONG);
|
||||
#endif
|
||||
char buff[20];
|
||||
return net_store_data((char*) buff,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue