fix test_type! when a NULL comes through

This commit is contained in:
Ryan Leckey 2020-03-18 16:17:01 -07:00 committed by Austin Bonander
parent b7aabaa0ec
commit 40e1df78f1

View file

@ -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)