mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
fix test_type! when a NULL comes through
This commit is contained in:
parent
b7aabaa0ec
commit
40e1df78f1
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ macro_rules! test_prepared_type {
|
|||
$(
|
||||
let query = format!($crate::[< $db _query_for_test_prepared_type >]!(), $text);
|
||||
|
||||
let rec: (bool, String, $ty, $ty) = sqlx::query_as(&query)
|
||||
let rec: (bool, Option<String>, $ty, $ty) = sqlx::query_as(&query)
|
||||
.bind($value)
|
||||
.bind($value)
|
||||
.bind($value)
|
||||
|
|
Loading…
Reference in a new issue