You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Formatter breaks correct code for procedure/function definition
To Reproduce
Steps to reproduce the behavior:
original code
DROP Procedure IF EXISTS `add`;
DELIMITER $$
CREATE DEFINER=`minidwh`@`localhost` PROCEDURE `add`(IN`a`INT, IN`b`INT, OUT `result`INT)
BEGINset result = a + b;
END
$$
DELIMITER ;
formatted code
DROP Procedure IF EXISTS `add`;
DELIMITER $$ CREATE DEFINER =`minidwh` @`localhost` PROCEDURE `add`(IN`a`INT, IN`b`INT, OUT `result`INT) BEGINset result = a + b;
END $$ DELIMITER;
Expected behavior
This would be acceptable:
DROP Procedure IF EXISTS `add`;
DELIMITER $$
CREATE DEFINER =`minidwh` @`localhost` PROCEDURE `add`(
IN`a`INT,
IN`b`INT,
OUT `result`INT)
BEGINset result = a + b;
END $$
DELIMITER;
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
SQLTools Version v0.28.1
VS Code Version: 1.85.1
OS: Windows XP
Driver: n/a
Database version: MariaDB 11.1.2
Additional context
This might have something to do with the DELIMITER problem
The text was updated successfully, but these errors were encountered:
Describe the bug
Formatter breaks correct code for procedure/function definition
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This would be acceptable:
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
This might have something to do with the DELIMITER problem
The text was updated successfully, but these errors were encountered: