Open
Description
Bug Description
DELIMITER
does not work in migration scripts, so stored procedures/functions cant be declared.
Minimal Reproduction
Inserting the following sql into any migration sql script
DELIMITER $$
SELECT 10$$
DELIMITER ;
causes the migration to fail with:
error: while executing migrations: error returned from database: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$
SELECT 10$$
DELIMITER' at line 1
Executing the same script in mysqlsh
works fine.
Info
- SQLx version:
0.6.2
- SQLx features enabled:
["runtime-tokio-rustls", "mysql", "offline", "uuid"]
- Database server and version:
MySQL 8.0
- Operating system:
windows
rustc --version
:rustc 1.62.0 (a8314ef7d 2022-06-27)