diff options
author | monty@hundin.mysql.fi <> | 2001-12-02 14:34:01 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-12-02 14:34:01 +0200 |
commit | 1d26537da53fee228b2f9d974d4806a06b76e33e (patch) | |
tree | 8e30a64d5c7aaa0ba8554c4c316cc9b76a6724ca /sql/item_create.cc | |
parent | 8a8617075a9e6ae3537bb8d81c8f4ab62e77fa44 (diff) | |
download | mariadb-git-1d26537da53fee228b2f9d974d4806a06b76e33e.tar.gz |
Query cache.
Remove some warnings
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index 55f8bb140a9..5809091275e 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -65,7 +65,9 @@ Item *create_func_ceiling(Item* a) Item *create_func_connection_id(void) { - return new Item_int("CONNECTION_ID()",(longlong) current_thd->thread_id,10); + THD *thd=current_thd; + thd->safe_to_cache_query=0; + return new Item_int("CONNECTION_ID()",(longlong) thd->thread_id,10); } Item *create_func_conv(Item* a, Item *b, Item *c) @@ -131,7 +133,9 @@ Item *create_func_floor(Item* a) Item *create_func_found_rows(void) { - return new Item_int("FOUND_ROWS()",(longlong) current_thd->found_rows(),21); + THD *thd=current_thd; + thd->safe_to_cache_query=0; + return new Item_int("FOUND_ROWS()",(longlong) thd->found_rows(),21); } Item *create_func_from_days(Item* a) @@ -141,6 +145,7 @@ Item *create_func_from_days(Item* a) Item *create_func_get_lock(Item* a, Item *b) { + current_thd->safe_to_cache_query=0; return new Item_func_get_lock(a, b); } @@ -279,6 +284,7 @@ Item *create_func_radians(Item *a) Item *create_func_release_lock(Item* a) { + current_thd->safe_to_cache_query=0; return new Item_func_release_lock(a); } @@ -379,10 +385,12 @@ Item *create_func_year(Item* a) Item *create_load_file(Item* a) { + current_thd->safe_to_cache_query=0; return new Item_load_file(a); } Item *create_wait_for_master_pos(Item* a, Item* b) { + current_thd->safe_to_cache_query=0; return new Item_master_pos_wait(a, b); } |