[MDEV-19639] sql_mode=ORACLE: Wrong SHOW PROCEDURE output for sysvar:=expr Created: 2019-05-30  Updated: 2019-06-04  Resolved: 2019-06-04

Status: Closed
Project: MariaDB Server
Component/s: Stored routines
Affects Version/s: 10.3, 10.4, 10.5
Fix Version/s: 10.5.0

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-5816 MySQL WL#4179 - Stored programs: vali... Closed

 Description   

SET sql_mode=ORACLE;
DELIMITER $$
CREATE OR REPLACE PROCEDURE p1() AS
BEGIN
  max_error_count:=10;
END;
$$
DELIMITER ;
SHOW PROCEDURE CODE p1;

+-----+------------------+
| Pos | Instruction      |
+-----+------------------+
|   0 | stmt 31 "SET 10" |
+-----+------------------+


Generated at Thu Feb 08 08:53:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.