Commit 3f7e4239 authored by venu@myvenu.com's avatar venu@myvenu.com

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)
parent b5bc52c7
...@@ -742,7 +742,9 @@ bool Protocol_simple::store_short(longlong from) ...@@ -742,7 +742,9 @@ bool Protocol_simple::store_short(longlong from)
bool Protocol_simple::store_long(longlong from) bool Protocol_simple::store_long(longlong from)
{ {
#ifndef DEBUG_OFF #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 #endif
char buff[20]; char buff[20];
return net_store_data((char*) buff, return net_store_data((char*) buff,
......
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