dolthub / dolt

Dolt – Git for Data
Apache License 2.0
17.41k stars 488 forks source link

Setting the delimiter to begin with `/` causes the dolt shell to incorrectly interpret lines as slash commands. #8022

Open nicktobey opened 1 month ago

nicktobey commented 1 month ago

Repro:

DELIMITER //

CREATE PROCEDURE create_system_user()
BEGIN
    IF (SELECT COUNT(*) FROM `user_test` where `user_test`.`username` = 'system') = 0 THEN
        INSERT INTO `user_test` (`username`) VALUES ('system');
    END IF;
END; //

Results in:

Unknown command: /. Use `/help;` for a list of command.