1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug #23279858: MYSQLD GOT SIGNAL 11 ON SIMPLE SELECT

NAME_CONST QUERY

ISSUE:
------
Using NAME_CONST with a non-constant negated expression as
value can result in incorrect behavior.

SOLUTION:
---------
The problem can be avoided by checking whether the argument
is a constant value.

The fix is a backport of Bug#12735545.
This commit is contained in:
Sreeharsha Ramanavarapu
2016-05-24 07:44:21 +05:30
parent 4de9d9c261
commit 115f08284d
3 changed files with 24 additions and 2 deletions

View File

@ -403,3 +403,10 @@ DROP TABLE t1;
#
# End of tests
#
SELECT NAME_CONST('a', -(1 OR 2)) OR 1;
ERROR HY000: Incorrect arguments to NAME_CONST
SELECT NAME_CONST('a', -(1 AND 2)) OR 1;
ERROR HY000: Incorrect arguments to NAME_CONST
SELECT NAME_CONST('a', -(1)) OR 1;
NAME_CONST('a', -(1)) OR 1
1