From 55a59121eec1a6ddc53eb8166c334ec2dbe3bab0 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Sun, 7 Jun 2020 04:07:33 -0700 Subject: [PATCH] test: small fix to sql in json test --- tests/postgres/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/postgres/types.rs b/tests/postgres/types.rs index 2220edf5c..36566d01d 100644 --- a/tests/postgres/types.rs +++ b/tests/postgres/types.rs @@ -261,7 +261,7 @@ mod json { test_type!(json( Postgres, - "SELECT {0}::jsonb is not distinct from $1::jsonb, {0} as _2, $2 as _3", + "SELECT ({0}::jsonb is not distinct from $1::jsonb)::int4, {0} as _2, $2 as _3", "'\"Hello, World\"'::json" == json!("Hello, World"), "'\"😎\"'::json" == json!("😎"), "'\"🙋‍♀️\"'::json" == json!("🙋‍♀️"),