1
0
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:
Alexander Barkov
2023-04-28 16:13:38 +04:00
parent c5f776e9fa
commit 09e237088c
9 changed files with 72 additions and 96 deletions

View File

@ -2292,6 +2292,19 @@ DROP TABLE t1,t2;
SELECT GROUP_CONCAT( UpdateXML( '<a>new year</a>', '/a', '2019-01-01 00:00:00' ), ENCODE('text','pass') ) AS f;
--echo #
--echo # MDEV-31184 Remove parser tokens DECODE_MARIADB_SYM and DECODE_ORACLE_SYM
--echo #
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT DECODE();
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT DECODE(NULL);
SELECT DECODE(NULL,NULL);
--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
SELECT DECODE(NULL, NULL, NULL);
--echo #
--echo # End of 10.4 tests
--echo #