[MDEV-33280] DELIMITER should work in the same way in every context Created: 2024-01-19  Updated: 2024-01-19

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Federico Razzoli Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: None


 Description   

When we define stored procedures, functions, triggers or events, we have to use DELIMITER:

DELIMITER $$
CREATE PROCEDURE ...
BEGIN
    ...
END $$
DELIMITER ;

This is the only way to write an SQL file that can be run by the mysql client.

But several database versioning tools break when they find DELIMITER. Some examples are Prisma and Postgrator.

In my tests, those tools just work if you remove DELIMITER and always use ";" as a delimiter. They seem to always understand where instructions end.

We need a way to write SQL files that work no matter how we run them. So please make the CLI work without DELIMITER or make connectors work with DELIMITER.


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