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

Proper handling of (all kinds of) empty queries #1383

Merged
merged 8 commits into from
Jul 5, 2024

Conversation

joka921
Copy link
Member

@joka921 joka921 commented Jun 28, 2024

Empty queries were properly handled so far (before the parsing), but queries that consisted only of whitespace, comments, or prefix declarations were not. The first two produced a segmentation fault, the last produced a confusing error message. Now none of these queries lead to a segmentation fault anymore, and in each case, the same proper error message is returned.

Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.08%. Comparing base (9e8cc07) to head (ea494aa).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1383      +/-   ##
==========================================
+ Coverage   89.05%   89.08%   +0.02%     
==========================================
  Files         328      328              
  Lines       29227    29234       +7     
  Branches     3248     3250       +2     
==========================================
+ Hits        26029    26042      +13     
+ Misses       2054     2049       -5     
+ Partials     1144     1143       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hannahbast hannahbast changed the title Try to fix the segfault in ANTLR. Proper handling of empty queries Jul 4, 2024
Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

1-1 with Johannes, minor changes left

Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

Awesome!

@hannahbast hannahbast changed the title Proper handling of empty queries Proper handling of (all kinds of) empty queries Jul 4, 2024
Copy link

sonarqubecloud bot commented Jul 5, 2024

@hannahbast hannahbast merged commit 833b951 into ad-freiburg:master Jul 5, 2024
20 checks passed
@joka921 joka921 deleted the fix-segfault branch December 18, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants