Skip to content

Conversation

adamziel
Copy link
Collaborator

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:

SELECT * FROM wp_users; ; SELECT * FROM wp_users;

Testing instructions

CI

cc @akirk

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
@adamziel adamziel merged commit b1c6d5a into trunk Oct 24, 2024
9 checks passed
@adamziel adamziel deleted the tolerate-empty-lines-in-run-sql branch October 24, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant