mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed bug 209 (SQL_SELECT_LIMIT and query cache incompatibility)
This commit is contained in:
@ -1029,7 +1029,8 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
||||
/* We must allocate some extra memory for query cache */
|
||||
if (!(thd->query= (char*) thd->memdup_w_gap((gptr) (packet),
|
||||
packet_length,
|
||||
thd->db_length+2)))
|
||||
thd->db_length+2+
|
||||
sizeof(ha_rows))))
|
||||
break;
|
||||
thd->query[packet_length]=0;
|
||||
thd->packet.shrink(thd->variables.net_buffer_length);// Reclaim some memory
|
||||
|
Reference in New Issue
Block a user