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
I wonder if this will only occur for CREATE PROCEDURE?
Maybe we can consider all text between CREATE PROCEDURE and END; as a single statement?
Then, for all other lines of the file, we can split by ;\n. What do you think?
Your workaround is nice, but with large procedures, it will be painful, and prevent users from copy/paste in the migration file directly.
Hmm... That's good point. IDK if there is anything else besides stored procedures that is affected by this issue, but if there is - it should be pretty easy to cover in similar fashion.
Currently we assume that each SQL statement is delimited by
;\n
Problem
Some stuff, like stored procedures, may have multiple
;\n
within one statement, for instance:Workaround
Add dummy comment after each
;
within stored procedure, e.g.:Suggested solutions
; --
workaround in migration file template.The text was updated successfully, but these errors were encountered: