-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add support for Oracle LOOP statement #116
Conversation
What fatal error are you talking about? |
(when the tests are run /wo the fix) |
Apparently, situations where the indent level ends up being negative are supposed to be handled by highlighting the last token in red: sql-formatter/src/SqlFormatter.php Lines 217 to 223 in 51e2d67
Should we address that first? |
Any warning added to a query is unwanted - it corrupts the query, so yes, this should be addressed, but for 1.4.x by parsing the tokens into matched indentation blocks. If the tokens are unable to be matched (like something is opened but not closed and vice versa), this should be in no indentation, but without any error/warning added to the formatted query. This PR fixes known |
OK so:
Please rework your commit message to make it more apparent that this is not a fix. |
be8737c
to
958c49c
Compare
958c49c
to
6423197
Compare
For the general issue you mentioned I created #118 👍 |
docs: https://docs.oracle.com/en/database/oracle/oracle-database/19/lnpls/basic-LOOP-statement.html