We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf991cc commit 6cf262aCopy full SHA for 6cf262a
sqlx-test/src/lib.rs
@@ -227,6 +227,7 @@ macro_rules! Postgres_query_for_test_prepared_type {
227
#[macro_export]
228
macro_rules! Odbc_query_for_test_prepared_type {
229
() => {
230
- "SELECT CASE WHEN {0} = ? THEN 1 ELSE 0 END, {0}, ?"
+ // Most ODBC drivers support standard SQL syntax for NULL-safe comparison
231
+ "SELECT CASE WHEN {0} IS NOT DISTINCT FROM ? THEN 1 ELSE 0 END, {0}, ?"
232
};
233
}
0 commit comments