-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Blueprints] Skip empty lines in the runSql step (#1939)
Skips the empty SQL lines in the runSql Blueprint step. Before this PR, the step handler was very strict and would error out on the first empty or semicolon-only line. While I was on it, I split the unit tests into three distinct cases and simplified the SQL running logic. This SQL file wouldn't work before this PR but it works after it: ```sql SELECT * FROM wp_users; ; SELECT * FROM wp_users; ``` ## Testing instructions CI cc @akirk
- Loading branch information
Showing
2 changed files
with
62 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters