diff options
author | unknown <kroki/tomash@moonlight.intranet> | 2006-11-16 14:13:03 +0300 |
---|---|---|
committer | unknown <kroki/tomash@moonlight.intranet> | 2006-11-16 14:13:03 +0300 |
commit | 5cb0011de73419db7ea8c736030c4add83e94620 (patch) | |
tree | ef824e40692b4feb07161bc9d403ccf6b01d03a0 /sql/item_strfunc.cc | |
parent | f09031ee36d60f892e5629f930b45aaf5f9501f3 (diff) | |
parent | af22eb35e577ef17226faf662f2cffc4705bde26 (diff) | |
download | mariadb-git-5cb0011de73419db7ea8c736030c4add83e94620.tar.gz |
Merge moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0-bug17047
into moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.1-bug17047
sql/item_cmpfunc.cc:
Auto merged
sql/item_strfunc.cc:
Auto merged
sql/item_strfunc.h:
Auto merged
mysql-test/r/func_in.result:
Manual merge. Add "End of <version> tests" marker.
mysql-test/r/func_str.result:
Manual merge. Add "End of <version> tests" marker.
mysql-test/t/func_in.test:
Manual merge. Add "End of <version> tests" marker.
mysql-test/t/func_str.test:
Manual merge. Add "End of <version> tests" marker.
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 7237b4e37ae..a8e996a0ec3 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -80,6 +80,20 @@ String *Item_str_func::check_well_formed_result(String *str) } +bool Item_str_func::fix_fields(THD *thd, Item **ref) +{ + bool res= Item_func::fix_fields(thd, ref); + /* + In Item_str_func::check_well_formed_result() we may set null_value + flag on the same condition as in test() below. + */ + maybe_null= (maybe_null || + test(thd->variables.sql_mode & + (MODE_STRICT_TRANS_TABLES | MODE_STRICT_ALL_TABLES))); + return res; +} + + my_decimal *Item_str_func::val_decimal(my_decimal *decimal_value) { DBUG_ASSERT(fixed == 1); |