mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
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.
This commit is contained in:
parent
554d405d73
commit
a462f34a94
3 changed files with 9 additions and 0 deletions
|
|
@ -195,9 +195,15 @@ NULL
|
|||
SELECT NAME_CONST('test', 1);
|
||||
test
|
||||
1
|
||||
SELECT NAME_CONST('test', -1);
|
||||
test
|
||||
-1
|
||||
SELECT NAME_CONST('test', 1.0);
|
||||
test
|
||||
1.0
|
||||
SELECT NAME_CONST('test', -1.0);
|
||||
test
|
||||
-1.0
|
||||
SELECT NAME_CONST('test', 'test');
|
||||
test
|
||||
test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue