diff options
author | unknown <mhansson/martin@linux-st28.site> | 2007-10-09 11:36:05 +0200 |
---|---|---|
committer | unknown <mhansson/martin@linux-st28.site> | 2007-10-09 11:36:05 +0200 |
commit | a462f34a94ffe2c055dbaf3e2a854911c36edfaa (patch) | |
tree | 2d233dfda102d9dabe9cc564b8339c61460e6f73 /sql/item_func.h | |
parent | 554d405d73c5618b0dbca4e118a8739932a3a39f (diff) | |
download | mariadb-git-a462f34a94ffe2c055dbaf3e2a854911c36edfaa.tar.gz |
Bug#30832:Assertion + crash with select name_const('test',now());
Completion of previous patch. Negative number were denied
as the second argument to NAME_CONST.
mysql-test/r/func_misc.result:
Bug#30832 completion: test result
mysql-test/t/func_misc.test:
Bug#30832 completion: test case
added negative numbers
sql/item_func.h:
Bug#30832 completion
The function that represents unary minus is considered a constant if the argument is.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 87c9e016df2..43221a18a5b 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -435,6 +435,7 @@ public: longlong int_op(); my_decimal *decimal_op(my_decimal *); const char *func_name() const { return "-"; } + virtual bool basic_const_item() const { return args[0]->basic_const_item(); } void fix_length_and_dec(); void fix_num_length_and_dec(); uint decimal_precision() const { return args[0]->decimal_precision(); } |