Skip to content

test(linux): read a corpus of real values back on every engine - #3559

Merged
datlechin merged 5 commits into
mainfrom
test/linux-value-corpus
Oct 19, 2026
Merged

datlechin merged 5 commits into
mainfrom
test/linux-value-corpus

Conversation

@datlechin

@datlechin datlechin commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Why

Release criterion 3 asks for a corpus test per engine with real values. Running one found values the grid showed wrong: a MySQL BIT(1) as 00000001, a DATETIME(6) or SQL Server datetime2(7) without its declared digits in a table tab, and a PostgreSQL date or timestamp past 262143 AD as unreadable.

Change

  • value_corpus_suite! writes each engine's dates, times, decimals, JSON, UUIDs, Unicode, binary and other common values as SQL, then checks the text a table tab, its Export All and an editor run show.
  • A table tab and its export take the fractional digits and BIT length the catalogue declares where the result's metadata has none.
  • PostgreSQL dates and timestamps chrono cannot hold read as the server's text.

Verified

The corpus passes on PostgreSQL, MySQL, MariaDB, SQL Server, ClickHouse and SQLite; on MySQL and SQL Server it failed before the fixes. The driver pages list what sqlx and tiberius still hide from an editor run.

@datlechin
datlechin merged commit 3d184dc into main Oct 19, 2026
32 checks passed
@datlechin
datlechin deleted the test/linux-value-corpus branch October 19, 2026 05:27
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