diff options
author | unknown <dlenev@mysql.com> | 2004-09-09 23:45:19 +0400 |
---|---|---|
committer | unknown <dlenev@mysql.com> | 2004-09-09 23:45:19 +0400 |
commit | b0afd74eba339155721c9916556d53457ac37b7d (patch) | |
tree | c7d8ff3b9faa0aa56711ec957c2d0101b35e70c1 /sql/item_func.h | |
parent | 97cbcbb0d7414c4bbb33fdf8a0a5bc90662cc7dc (diff) | |
parent | 0994dc396e9afe9516fae1b6fa2c707b1164d978 (diff) | |
download | mariadb-git-b0afd74eba339155721c9916556d53457ac37b7d.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/src/mysql-5.0-1218-a
sql/item_func.h:
Auto merged
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 9aff613fa02..48a33bad80d 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -1131,25 +1131,31 @@ public: double val() { Item *it; + double d; if (execute(&it)) { null_value= 1; return 0.0; } - return it->val(); + d= it->val(); + null_value= it->null_value; + return d; } String *val_str(String *str) { Item *it; + String *s; if (execute(&it)) { null_value= 1; return NULL; } - return it->val_str(str); + s= it->val_str(str); + null_value= it->null_value; + return s; } void fix_length_and_dec(); |