[MDEV-31184] Remove parser tokens DECODE_MARIADB_SYM and DECODE_ORACLE_SYM Created: 2023-05-04  Updated: 2023-10-23  Resolved: 2023-10-23

Status: Closed
Project: MariaDB Server
Component/s: Parser
Fix Version/s: 10.8.8, 10.4.32, 10.5.23, 10.6.16, 10.9.8, 10.10.7, 10.11.6, 11.0.4, 11.1.3, 11.2.2, 11.3.1

Type: Task Priority: Critical
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-27744 LPAD in vcol created in ORACLE mode m... Closed

 Description   

In order to fix MDEV-27744 easier, let's change the code handling sql_mode-dependent function DECODE(), as the follows:

  • remove parser tokens DECODE_MARIADB_SYM and DECODE_ORACLE_SYM handling sql_mode-dependent function DECODE()
  • remove the DECODE() code from sql_yacc.yy/sql_yacc_ora.yy
  • add handling of DECODE() using regular Create_func means


 Comments   
Comment by Alexander Barkov [ 2023-08-31 ]

Hello Sergei Golubchik, please find the latest patch here:

https://github.com/MariaDB/server/commits/bb-10.4-bar-MDEV-27744-v2

There are three patches in this branch:
MDEV-31184
MDEV-31187
MDEV-27744

Thanks.

Comment by Alexander Barkov [ 2023-10-23 ]

serg, please find a new patch version here:

https://github.com/MariaDB/server/commit/0e43e544a8d03163ad0cbc8479d0ae3cf7b191e3

Comment by Sergei Golubchik [ 2023-10-23 ]

0e43e544a8d is ok to push, thanks!

Generated at Thu Feb 08 10:21:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.