Skip to content

Conversation

@JasonShin
Copy link
Owner

related issue: #192

Copilot AI review requested due to automatic review settings December 30, 2025 13:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the tool incorrectly reported success when scanning multiple SQL files with mixed valid and invalid queries. The issue was that the failed status flag was being overwritten instead of accumulated, causing subsequent successful queries to reset the error state.

Key Changes:

  • Modified the failure tracking logic to use logical OR instead of direct assignment
  • Added comprehensive integration tests covering various failure scenarios

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/core/execute.rs Fixed failure flag logic to accumulate errors across multiple queries using OR operation
tests/exit_code_on_error.rs Added integration tests verifying correct exit codes for mixed success/failure scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings December 30, 2025 13:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JasonShin JasonShin merged commit 0b34de1 into main Dec 30, 2025
33 checks passed
@JasonShin JasonShin deleted the wrong-exit-code branch December 30, 2025 14:01
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