FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(dml): preserve leading zeros and boolean strings in string columns (#594) by ZhuchkaTriplesix · Pull Request #598 · QueryaHub/Querya-Desktop · GitHub

fix(dml): preserve leading zeros and boolean strings in string columns (#594) - #598

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/594-preserve-leading-zeros-dml
Aug 26, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/594-preserve-leading-zeros-dml

Conversation

Copy link
Copy Markdown
Member

Closes #594

Summary of Changes

  • Updated TableMutationEngine.formatLiteral to accept an optional dataTypeName parameter and safely preserve text columns:
    • String columns (varchar, text, char, uuid, json, etc.) are always wrapped in single quotes, preserving values with leading zeros (e.g. 01234) and text booleans (e.g. true).
    • Added fallback heuristic so leading-zero numeric strings (^0\d+$) without explicit schema metadata are also quoted as strings.
  • Added columnDataTypes map parameter to TableMutationEngine.generatePlan and DataGridStagingBuffer.generateMutationPlan.
  • Added comprehensive unit tests in test/core/database/table_mutation_engine_test.dart.

github-actions Bot added the bug Something isn't working label Aug 26, 2026
ZhuchkaTriplesix merged commit c036df7 into dev Aug 26, 2026
4 checks passed
ZhuchkaTriplesix deleted the issue/594-preserve-leading-zeros-dml branch August 30, 2026 18:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL