Skip to content

Commit

Permalink
change attach db to write transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed Sep 11, 2024
1 parent 6db4d1d commit f78e5ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/parser/visitor/statement_read_write_analyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class StatementReadWriteAnalyzer final : public StatementVisitor {
void visitUpdatingClause(const UpdatingClause* /*updatingClause*/) override {
readOnly = false;
}
void visitAttachDatabase(const Statement& /*statement*/) override { readOnly = false; }

Check warning on line 31 in src/include/parser/visitor/statement_read_write_analyzer.h

View check run for this annotation

Codecov / codecov/patch

src/include/parser/visitor/statement_read_write_analyzer.h#L31

Added line #L31 was not covered by tests

private:
bool readOnly;
Expand Down

0 comments on commit f78e5ef

Please sign in to comment.