Skip to content

test(compare): match the row-limit sentinel read and the grid-drawn compare rows - #2859

Merged
datlechin merged 2 commits into
mainfrom
fix/compare-test-expectations
Sep 15, 2026
Merged

datlechin merged 2 commits into
mainfrom
fix/compare-test-expectations

Conversation

@datlechin

Copy link
Copy Markdown
Member

main is red after #2854. Four unit tests still describe the code as it was before two changes in that PR landed.

The sentinel read. A row-limited side reads limit + 1 rows and never hands the last one out, so "this side ended exactly at the limit" is the server's own answer rather than a guess from the row count. Three KeyOrderedQueryScopeTests cases still expect LIMIT 100, LIMIT 50, FETCH NEXT 10 and TOP 10.

The compare rows pane. It renders its values through DataGridView now, which takes its cell font from ThemeEngine.dataGridFonts in DataGridCellPalette, the same setting valueFont returns. ValueFontTests still lists the pane among the views that must name the font themselves, and a pane that renders no value of its own has nothing to name.

Tests only. No behaviour changes.

Verified: KeyOrderedQueryScopeTests and ValueFontTests, 18 executed, 18 passed.

…k, and the structure script's stale schema (#2860)

* fix(compare): compare every key both sides were read past under a row limit

* fix(compare): refuse a comparison of one scope against itself before it deadlocks

* feat(compare): refuse a structure script when an object changed after it was compared
@mintlify

mintlify Bot commented Sep 15, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
TablePro 🟢 Ready View Preview Sep 15, 2026, 12:52 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@datlechin
datlechin merged commit 6d8bb58 into main Sep 15, 2026
4 of 5 checks passed
@datlechin
datlechin deleted the fix/compare-test-expectations branch September 15, 2026 00:52
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