Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CLI --execute {file}.sql option to support CRLF line break, #519

Merged
merged 2 commits into from
Apr 9, 2022

Conversation

panarch
Copy link
Member

@panarch panarch commented Apr 9, 2022

Replace ";\n" to ";" in --execute line splitting.

SQL files which are generated in Windows OS usually use CRLF symbol for line-break.
Current CLI --execute option was handling only the first statement and ignores the remainders.
Fix splitting symbol not to contain \n to resolve this issue.

Replace ";\n" to ";" in --execute line splitting.
@panarch panarch added the bug Something isn't working label Apr 9, 2022
@panarch panarch requested review from ever0de and 24seconds April 9, 2022 09:14
@panarch panarch self-assigned this Apr 9, 2022
Copy link
Member

@ever0de ever0de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codecov-commenter
Copy link

codecov-commenter commented Apr 9, 2022

Codecov Report

Merging #519 (7374019) into main (76644d0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #519   +/-   ##
=======================================
  Coverage   92.53%   92.53%           
=======================================
  Files         173      173           
  Lines       10925    10925           
=======================================
  Hits        10109    10109           
  Misses        816      816           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76644d0...7374019. Read the comment docs.

@panarch panarch merged commit 5550849 into main Apr 9, 2022
@panarch panarch deleted the fix-cli-execute-sql-clrf-split-bug branch April 9, 2022 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants