diff options
author | ramil/ram@ramil.myoffice.izhnet.ru <> | 2007-05-24 20:21:04 +0500 |
---|---|---|
committer | ramil/ram@ramil.myoffice.izhnet.ru <> | 2007-05-24 20:21:04 +0500 |
commit | 6369ff54b72f8225a70d9af5f15cbdcaaaae7c5c (patch) | |
tree | 5929abc2c2174df0f7a69649b74b71a3ab9c7625 /sql/item.cc | |
parent | a99fe7f3d6f8f02e89b033e3f0854d47e37755dc (diff) | |
parent | 63b2e8d9dfab1cb2ed0b8f1c1fce267512cf5493 (diff) | |
download | mariadb-git-6369ff54b72f8225a70d9af5f15cbdcaaaae7c5c.tar.gz |
Merge mysql.com:/home/ram/work/mysql-5.0-maint
into mysql.com:/home/ram/work/b28464.new/b28464.new.5.0
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc index 0f5d3c86485..a5dfa0db6b6 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -2313,6 +2313,7 @@ default_set_param_func(Item_param *param, Item_param::Item_param(unsigned pos_in_query_arg) : + strict_type(FALSE), state(NO_VALUE), item_result_type(STRING_RESULT), /* Don't pretend to be a literal unless value for this item is set. */ @@ -2507,6 +2508,8 @@ bool Item_param::set_from_user_var(THD *thd, const user_var_entry *entry) if (entry && entry->value) { item_result_type= entry->type; + if (strict_type && required_result_type != item_result_type) + DBUG_RETURN(1); switch (item_result_type) { case REAL_RESULT: set_double(*(double*)entry->value); |