Closed tomershaniii closed 1 month ago
@iffyio took some yak shaving but it's finally here :-) check out test_parentheses_overflow
Some context for the other changes:
parse_boxed
functions and added native boxing to the respective parse_
functionsLooks like a CI check is failing on this PR
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/parser/mod.rs | 61 | 63 | 96.83% | ||
<!-- | Total: | 277 | 279 | 99.28% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
tests/sqlparser_common.rs | 4 | 89.6% | ||
<!-- | Total: | 4 | --> |
Totals | |
---|---|
Change from base Build 11429400839: | 0.001% |
Covered Lines: | 30400 |
Relevant Lines: | 34009 |
CI issues fixed, please re-run
Build broken by another commit, please re-run CI
🤔 CI is still failing unfortunately
yet another rebase fix @alamb plz...
🚀
Thanks for sticking with this @tomershaniii and for the review @iffyio
This PR fixes a bug in the recursion checks, the bug is caused by maybe_parse ignoring the returned error, which (in the case of recursion depth check) prevents the Error from propagating back to the caller and may lead to unexpected parsing results.
The fix involves specific handling of the
RecursionLimitExceeded
error withinmaybe_parse
and returning the error up the call stack.