mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-31184 Remove parser tokens DECODE_MARIADB_SYM and DECODE_ORACLE_SYM
Changing the code handling sql_mode-dependent function DECODE(): - removing parser tokens DECODE_MARIADB_SYM and DECODE_ORACLE_SYM - removing the DECODE() related code from sql_yacc.yy/sql_yacc_ora.yy - adding handling of DECODE() with help of a new Create_func_func_decode
This commit is contained in:
@ -5270,5 +5270,17 @@ SELECT GROUP_CONCAT( UpdateXML( '<a>new year</a>', '/a', '2019-01-01 00:00:00' )
|
||||
f
|
||||
2019-01-01 00:00:00F}^i
|
||||
#
|
||||
# MDEV-31184 Remove parser tokens DECODE_MARIADB_SYM and DECODE_ORACLE_SYM
|
||||
#
|
||||
SELECT DECODE();
|
||||
ERROR 42000: Incorrect parameter count in the call to native function 'DECODE'
|
||||
SELECT DECODE(NULL);
|
||||
ERROR 42000: Incorrect parameter count in the call to native function 'DECODE'
|
||||
SELECT DECODE(NULL,NULL);
|
||||
DECODE(NULL,NULL)
|
||||
NULL
|
||||
SELECT DECODE(NULL, NULL, NULL);
|
||||
ERROR 42000: Incorrect parameter count in the call to native function 'DECODE'
|
||||
#
|
||||
# End of 10.4 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user