1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Structure for storing parameters of query in query cache (asked by Bar)

This commit is contained in:
bell@laptop.sanja.is.com.ua
2003-10-02 12:02:05 +03:00
parent d62eaa7815
commit c3ab43b3f0
3 changed files with 46 additions and 37 deletions

View File

@@ -1591,8 +1591,8 @@ bool alloc_query(THD *thd, char *packet, ulong packet_length)
/* 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+
sizeof(ha_rows))))
thd->db_length+ 1 +
QUERY_CACHE_FLAGS_SIZE)))
return 1;
thd->query[packet_length]=0;
thd->query_length= packet_length;