Skip to content

Fix PRAGMA quickCheck() reporting#1324

Open
MichaelSwigerAtBentley wants to merge 2 commits intomainfrom
mike/fix-pragma
Open

Fix PRAGMA quickCheck() reporting#1324
MichaelSwigerAtBentley wants to merge 2 commits intomainfrom
mike/fix-pragma

Conversation

@MichaelSwigerAtBentley
Copy link
Contributor

@MichaelSwigerAtBentley MichaelSwigerAtBentley commented Feb 4, 2026

itwinjs-core: iTwin/itwinjs-core#8958

Fixes an issue where calling PRAGMA integrity_check would always return true even if the check failed. This was caused due to a true boolean always being returned instead of what the check returned.

Unit tests to confirm this are added as a part of the iTwin-core PR.

Fixes: https://github.com/iTwin/itwinjs-backlog/issues/1847

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

Fixes QuickCheck reporting so PRAGMA integrity checks correctly return false when failures are detected, instead of always reporting success.

Changes:

  • Track whether each integrity check reports an error and pass that status to the callback.
  • Correct the callback’s check name for the CheckMissingChildRows case.

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.

1 participant