[MDEV-19640] Wrong SHOW PROCEDURE output for SET GLOBAL sysvar1=expr, sysvar2=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   

DELIMITER $$
CREATE OR REPLACE PROCEDURE p1()
BEGIN
  SET GLOBAL max_allowed_packet=16000000, max_error_count=60;
  SELECT @@GLOBAL.max_allowed_packet, @@GLOBAL.max_error_count;
END;
$$
DELIMITER ;
SHOW PROCEDURE CODE p1;

+-----+---------------------------------------------------+
| Pos | Instruction                                       |
+-----+---------------------------------------------------+
|   0 | stmt 31 "SET  GLOBAL max_allowed_packet=16000000" |
|   1 | stmt 31 "SET  max_error_count=60"                 |
|   2 | stmt 0 "SELECT @@GLOBAL.max_allowed_packet, @..." |
+-----+---------------------------------------------------+

Notice, the second "stmt" instruction is missing the GLOBAL keyword.


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