test(mssql): handle null-safe equality comparison for type test for nulls

This commit is contained in:
Ryan Leckey 2020-06-10 00:32:09 -07:00
parent 2a5ea2f71b
commit ce4286dff5

View file

@ -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"
};
}