Skip to content

fix(mysql): avoid invalid pagination after semicolons - #389

Merged
debba merged 3 commits into
TabularisDB:mainfrom
Stiwar0098:fix/mariadb-introspection-limit-syntax
Jun 30, 2026
Merged

debba merged 3 commits into
TabularisDB:mainfrom
Stiwar0098:fix/mariadb-introspection-limit-syntax

Conversation

@Stiwar0098

Copy link
Copy Markdown
Contributor

Closes #388

Summary

  • Normalize paginated SELECT SQL so trailing statement terminators and comments do not leave LIMIT/OFFSET after a semicolon.
  • Preserve user-supplied LIMIT/OFFSET behavior while avoiding duplicate pagination clauses.
  • Harden SQL scanning for MySQL/MariaDB comment syntax, # comments, quoted comment markers, and backslash-escaped strings.
  • Ignore local .opencode/ workspace files as requested.

Review notes

  • GitNexus changed-scope check: low risk, 0 affected processes.
  • Fresh PR-readiness review: no blockers found.

Test plan

  • cargo test drivers::common::tests::test_build_paginated_query --lib — 31 passed
  • Restored src-tauri/Cargo.toml and src-tauri/Cargo.lock after the temporary OpenSSL test workaround.

@kilo-code-bot

kilo-code-bot Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • .gitignore
  • src-tauri/src/drivers/common/query.rs
  • src-tauri/src/drivers/common/tests.rs

Reviewed by nemotron-3-super-120b-a12b-20230311:free · Input: 130.4K · Output: 21.8K · Cached: 51.3K

@debba
debba merged commit 021271b into TabularisDB:main Jun 30, 2026
1 check passed
@Stiwar0098
Stiwar0098 deleted the fix/mariadb-introspection-limit-syntax branch July 7, 2026 16:31
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.

fix(mysql): avoid invalid pagination after semicolons

2 participants