Commit 7271ea25 authored by unknown's avatar unknown

Merge mysql.com:/users/lthalmann/ltx/root/mysql-5.0

into  mysql.com:/users/lthalmann/ltx/dev/mysql-5.0-bug12532


sql/log_event.cc:
  Auto merged
parents 96f884c0 3e946906
...@@ -1330,7 +1330,13 @@ Query_log_event::Query_log_event(const char* buf, uint event_len, ...@@ -1330,7 +1330,13 @@ Query_log_event::Query_log_event(const char* buf, uint event_len,
if (!(start= data_buf = (char*) my_malloc(catalog_len + 1 + if (!(start= data_buf = (char*) my_malloc(catalog_len + 1 +
time_zone_len + 1 + time_zone_len + 1 +
data_len + 1, MYF(MY_WME)))) data_len + 1 +
#ifndef MYSQL_CLIENT
#ifdef HAVE_QUERY_CACHE
QUERY_CACHE_FLAGS_SIZE +
#endif
#endif
db_len + 1, MYF(MY_WME))))
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
if (catalog_len) // If catalog is given if (catalog_len) // If catalog is given
{ {
......
...@@ -923,6 +923,10 @@ sql mode: 0x%lx, sort len: %lu, conncat len: %lu", ...@@ -923,6 +923,10 @@ sql mode: 0x%lx, sort len: %lu, conncat len: %lu",
0 The query was cached and user was sent the result. 0 The query was cached and user was sent the result.
-1 The query was cached but we didn't have rights to use it. -1 The query was cached but we didn't have rights to use it.
No error is sent to the client yet. No error is sent to the client yet.
NOTE
This method requires that sql points to allocated memory of size:
tot_length= query_length + thd->db_length + 1 + QUERY_CACHE_FLAGS_SIZE;
*/ */
int int
......
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