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

add support for multiple query statements #2889

Merged
merged 1 commit into from
Feb 25, 2024
Merged

add support for multiple query statements #2889

merged 1 commit into from
Feb 25, 2024

Conversation

hououou
Copy link
Collaborator

@hououou hououou commented Feb 15, 2024

This PR is to add support for multiple query statements.

Currently, we split multiple query statements into several query statements. Each query statement then triggers an auto transaction. This is because we do not support DDL in manual transactions. We should support multiple query statements in one transaction after we support DDL in manual transactions.

src/parser/parser.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@andyfengHKU andyfengHKU left a comment

Choose a reason for hiding this comment

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

Overall LGTM.

But I want to take another look after you change the grammar.

scripts/antlr4/Cypher.g4.copy Outdated Show resolved Hide resolved
src/main/connection.cpp Outdated Show resolved Hide resolved
src/main/connection.cpp Outdated Show resolved Hide resolved
src/include/main/query_result.h Outdated Show resolved Hide resolved
src/include/main/query_result.h Outdated Show resolved Hide resolved
@hououou hououou marked this pull request as ready for review February 22, 2024 16:32
Copy link

codecov bot commented Feb 22, 2024

Codecov Report

Attention: Patch coverage is 98.21429% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 93.51%. Comparing base (89aba2f) to head (373fb2e).
Report is 23 commits behind head on master.

Files Patch % Lines
src/main/connection.cpp 97.14% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2889      +/-   ##
==========================================
+ Coverage   93.48%   93.51%   +0.03%     
==========================================
  Files        1116     1121       +5     
  Lines       42662    42913     +251     
==========================================
+ Hits        39883    40131     +248     
- Misses       2779     2782       +3     

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

@hououou hououou merged commit 0ba33b8 into master Feb 25, 2024
15 checks passed
@hououou hououou deleted the multiple_queries branch February 25, 2024 20:59
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