Skip to content

fix(oscar): stop leaking internal ROWNUM column on first page of paginated queries - #2304

Merged
openai0229 merged 2 commits into
OtterMind:mainfrom
HandSonic:fix/review-oscar
Jul 28, 2026
Merged

fix(oscar): stop leaking internal ROWNUM column on first page of paginated queries#2304
openai0229 merged 2 commits into
OtterMind:mainfrom
HandSonic:fix/review-oscar

Conversation

@HandSonic

Copy link
Copy Markdown
Contributor

Fixes verified review finding tracked in #2281: buildPageLimit appended the ROWNUM inner-select wrapper whenever endRow>0 but the outer wrapper only when startRow>0, so page 1 leaked the internal CHAT2DB_AUTO_ROW_ID column into results (and the downstream header filter only matches the typo'd CAHT2DB spelling used by Oracle/DB2/SqlServer). First page is now wrapped in the outer select so the internal column is stripped. Regression tests added. Verified on fork HandSonic#6 (CI green).

@openai0229
openai0229 merged commit f6f3f09 into OtterMind:main Jul 28, 2026
16 checks passed
@openai0229 openai0229 moved this from In Review to Done in Chat2DB Community Jul 28, 2026
iamraydoan added a commit to iamraydoan/Chat2DB that referenced this pull request Jul 29, 2026
… not leaked (code review follow-up) (OtterMind#2304)

Co-authored-by: openai0229 <136558319+openai0229@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants