mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
postgres: add type test for NULL
This commit is contained in:
parent
a165615f53
commit
76431141e5
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,12 @@
|
||||||
use sqlx::Postgres;
|
use sqlx::Postgres;
|
||||||
use sqlx_test::test_type;
|
use sqlx_test::test_type;
|
||||||
|
|
||||||
|
test_type!(null(
|
||||||
|
Postgres,
|
||||||
|
Option<i16>,
|
||||||
|
"NULL" == None::<i16>
|
||||||
|
));
|
||||||
|
|
||||||
test_type!(bool(
|
test_type!(bool(
|
||||||
Postgres,
|
Postgres,
|
||||||
bool,
|
bool,
|
||||||
|
|
Loading…
Reference in a new issue