1
0
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:
bell@sanja.is.com.ua
2003-03-31 09:49:09 +03:00
parent 63cb565895
commit 4d87fd0346
4 changed files with 49 additions and 14 deletions

View File

@ -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