Repository navigation
MSSQL: preserve bound type for NULL parameter declarations - #59
Merged
Merged
Conversation
lovasoa
force-pushed
the
fix/mssql-null-parameter-declaration
branch
from
September 23, 2026 14:51
0f8edd1 to
bf00c41
Compare
lovasoa
force-pushed
the
fix/mssql-null-parameter-declaration
branch
from
September 23, 2026 15:06
bf00c41 to
ea1e299
Compare
lovasoa
force-pushed
the
fix/mssql-null-parameter-declaration
branch
from
September 23, 2026 15:11
ea1e299 to
bf5737c
Compare
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
For
None::<String>,Encode<Mssql> for Option<T>reportsDataType::Nullfor the TDS value.MssqlArguments::addnow usesT::type_info()only for thesp_executesqldeclaration, so the parameter is declarednvarchar(max)while the TDS value retains SQL Server's NULL type.Add a small unit test that asserts both the declaration and the encoded TDS
NULLTYPE.Fixes #58. Related SQLPage report: SQLPage #1481.
Validation
cargo fmt --all -- --checkpasses.This PR stacks on PR #60 for its Clippy checks. After #60 merges, retarget this PR to
main.