summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-07-20 12:26:18 +0200
committerunknown <serg@serg.mylan>2003-07-20 12:26:18 +0200
commitc1ed639cb654cc12f2971d840a541c0d9fa80327 (patch)
treef5346590101ec960b64abe165293a334df435f5b /sql/item.h
parent56b220b11e06c5b6074c49cc114c39ee50be1cd1 (diff)
downloadmariadb-git-c1ed639cb654cc12f2971d840a541c0d9fa80327.tar.gz
bug #715: SELECT YEAR+0 FROM foobar is parsed as 'SELECT' 'YEAR' '+0' => syntax error
mysql-test/r/bigint.result: test results updated mysql-test/r/type_decimal.result: test results updated mysql-test/t/bigint.test: new tests added mysql-test/t/type_decimal.test: error numbers updated sql/item.h: round(9999999999999999999) fixed sql/sql_yacc.yy: bug #715: SELECT YEAR+0 FROM foobar is parsed as 'SELECT' 'YEAR' '+0' => syntax error unary '+' added
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h
index 57061221878..450cb396787 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -374,7 +374,7 @@ public:
Item_uint(const char *str_arg, uint length) :
Item_int(str_arg, (longlong) strtoull(str_arg,(char**) 0,10), length) {}
Item_uint(uint32 i) :Item_int((longlong) i, 10) {}
- double val() { return ulonglong2double(value); }
+ double val() { return ulonglong2double((ulonglong)value); }
String *val_str(String*);
Item *new_item() { return new Item_uint(name,max_length); }
bool fix_fields(THD *thd, struct st_table_list *list, Item **item)