Skip to content

Commit 40e1df7

Browse files
mehcodeabonander
authored andcommitted
fix test_type! when a NULL comes through
1 parent b7aabaa commit 40e1df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ macro_rules! test_prepared_type {
6767
$(
6868
let query = format!($crate::[< $db _query_for_test_prepared_type >]!(), $text);
6969

70-
let rec: (bool, String, $ty, $ty) = sqlx::query_as(&query)
70+
let rec: (bool, Option<String>, $ty, $ty) = sqlx::query_as(&query)
7171
.bind($value)
7272
.bind($value)
7373
.bind($value)

0 commit comments

Comments
 (0)