mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
test(mssql): handle null-safe equality comparison for type test for nulls
This commit is contained in:
parent
2a5ea2f71b
commit
ce4286dff5
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ macro_rules! MySql_query_for_test_prepared_type {
|
|||
#[macro_export]
|
||||
macro_rules! Mssql_query_for_test_prepared_type {
|
||||
() => {
|
||||
"SELECT CASE WHEN {0} = @p1 THEN 1 ELSE 0 END, {0}, @p2"
|
||||
"SELECT CASE WHEN {0} IS NULL AND @p1 IS NULL THEN 1 WHEN {0} = @p1 THEN 1 ELSE 0 END, {0}, @p2"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue