Skip to content

Update sqlx-oldapi to fix MSSQL NULL parameters - #1493

Merged
lovasoa merged 1 commit into
mainfrom
codex/mssql-null-parameters
Sep 24, 2026
Merged

lovasoa merged 1 commit into
mainfrom
codex/mssql-null-parameters

Conversation

@lovasoa

@lovasoa lovasoa commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1481.

Update sqlx-core-oldapi and sqlx-rt-oldapi from 0.6.56 to 0.6.57. The new SQLx release declares NULL MSSQL parameters using their Rust string type, preserving the TDS NULL encoding while preventing ISNULL from truncating fallback values.

Add an MSSQL SQLPage regression fixture for string, COALESCE, and date fallbacks. Against a local SQL Server container, the fixture fails on 0.6.56 (isnull=[h], len=1, date_is_date=0) and passes on 0.6.57 (isnull=[hello], len=5, date_is_date=1).

Validation: cargo fmt --all, cargo test, cargo clippy --all-targets --all-features -- -D warnings, and the MSSQL database-specific fixture pass.

@lovasoa
lovasoa force-pushed the codex/mssql-null-parameters branch from ca08df7 to fc8b030 Compare September 24, 2026 07:00
@lovasoa lovasoa changed the title Fix MSSQL NULL parameter fallback handling Update sqlx-oldapi to fix MSSQL NULL parameters Sep 24, 2026
@lovasoa
lovasoa merged commit 754dbd7 into main Sep 24, 2026
52 checks passed
@lovasoa
lovasoa deleted the codex/mssql-null-parameters branch September 24, 2026 08:18
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.

SQL Server: NULL variables are bound with length 1 since v0.46, so ISNULL($var, 'default') returns 'd'

1 participant