diff options
author | bar@bar.mysql.r18.ru <> | 2003-01-16 17:17:07 +0400 |
---|---|---|
committer | bar@bar.mysql.r18.ru <> | 2003-01-16 17:17:07 +0400 |
commit | 4f9d82700db57fea35a1caca39520dd8c44db9a2 (patch) | |
tree | 63655aa98b051bb33cac94c520aec58962c9252b /sql/item_sum.h | |
parent | 4a77f335f42b22705611a5f323e461b6886614ce (diff) | |
download | mariadb-git-4f9d82700db57fea35a1caca39520dd8c44db9a2.tar.gz |
strnto family functions now return error in a new argument
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r-- | sql/item_sum.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h index ffc9558822d..c49311082e8 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -483,14 +483,16 @@ public: String *val_str(String *); double val() { + int err; String *res; res=val_str(&str_value); return res ? my_strntod(res->charset(),(char*) res->ptr(),res->length(), - (char**) 0) : 0.0; + (char**) 0, &err) : 0.0; } longlong val_int() { + int err; String *res; res=val_str(&str_value); - return res ? my_strntoll(res->charset(),res->ptr(),res->length(),(char**) 0,10) : (longlong) 0; + return res ? my_strntoll(res->charset(),res->ptr(),res->length(),10, (char**) 0, &err) : (longlong) 0; } enum Item_result result_type () const { return STRING_RESULT; } void fix_length_and_dec(); |