summaryrefslogtreecommitdiff
path: root/sql/item_create.cc
diff options
context:
space:
mode:
authorpeter@mysql.com <>2002-11-29 22:03:14 +0300
committerpeter@mysql.com <>2002-11-29 22:03:14 +0300
commit08f51eaedd8fb15eb629614af323d3cdc64dace1 (patch)
tree09b5a48a4fb2649410bee507206bcfc49ee4c806 /sql/item_create.cc
parent7e6977808f2d11d1e24997d110268c9f5bb818e5 (diff)
parent87fbeb4098fed0f2e100e00bdd88667d1f738190 (diff)
downloadmariadb-git-08f51eaedd8fb15eb629614af323d3cdc64dace1.tar.gz
Merging....
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r--sql/item_create.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index 838396d9b15..259427af901 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -83,7 +83,7 @@ Item *create_func_ceiling(Item* a)
Item *create_func_connection_id(void)
{
THD *thd=current_thd;
- thd->safe_to_cache_query=0;
+ thd->lex.safe_to_cache_query=0;
return new Item_int("CONNECTION_ID()",(longlong) thd->thread_id,10);
}
@@ -156,7 +156,7 @@ Item *create_func_floor(Item* a)
Item *create_func_found_rows(void)
{
THD *thd=current_thd;
- thd->safe_to_cache_query=0;
+ thd->lex.safe_to_cache_query=0;
return new Item_int("FOUND_ROWS()",(longlong) thd->found_rows(),21);
}
@@ -167,7 +167,7 @@ Item *create_func_from_days(Item* a)
Item *create_func_get_lock(Item* a, Item *b)
{
- current_thd->safe_to_cache_query=0;
+ current_thd->lex.safe_to_cache_query=0;
return new Item_func_get_lock(a, b);
}
@@ -315,7 +315,7 @@ Item *create_func_radians(Item *a)
Item *create_func_release_lock(Item* a)
{
- current_thd->safe_to_cache_query=0;
+ current_thd->lex.safe_to_cache_query=0;
return new Item_func_release_lock(a);
}
@@ -423,13 +423,13 @@ Item *create_func_year(Item* a)
Item *create_load_file(Item* a)
{
- current_thd->safe_to_cache_query=0;
+ current_thd->lex.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;
+ current_thd->lex.safe_to_cache_query=0;
return new Item_master_pos_wait(a, b);
}
@@ -439,6 +439,7 @@ Item *create_func_cast(Item *a, Item_cast cast_type)
LINT_INIT(res);
switch (cast_type) {
case ITEM_CAST_BINARY: res= new Item_func_binary(a); break;
+ case ITEM_CAST_CHAR: res= new Item_char_typecast(a); break;
case ITEM_CAST_SIGNED_INT: res= new Item_func_signed(a); break;
case ITEM_CAST_UNSIGNED_INT: res= new Item_func_unsigned(a); break;
case ITEM_CAST_DATE: res= new Item_date_typecast(a); break;
@@ -450,7 +451,7 @@ Item *create_func_cast(Item *a, Item_cast cast_type)
Item *create_func_is_free_lock(Item* a)
{
- current_thd->safe_to_cache_query=0;
+ current_thd->lex.safe_to_cache_query=0;
return new Item_func_is_free_lock(a);
}