uniqueifyJsonbArray() hasNonUniq coverage
authorPeter Geoghegan <[email protected]>
Mon, 17 Mar 2014 21:42:39 +0000 (14:42 -0700)
committerPeter Geoghegan <[email protected]>
Mon, 17 Mar 2014 21:42:39 +0000 (14:42 -0700)
src/test/regress/expected/jsonb.out
src/test/regress/expected/jsonb_1.out
src/test/regress/sql/jsonb.sql

index 18c702886cbc42f32a5e6f84af09ea4cddfc5969..686f8efddc92dbf922c6a4b97df957f9fab7b97b 100644 (file)
@@ -860,6 +860,12 @@ SELECT jsonb '{"a":null, "b":"qq"}' ?& ARRAY['c','d'];
  f
 (1 row)
 
+SELECT jsonb '{"a":null, "b":"qq"}' ?& ARRAY['a','a', 'b', 'b', 'b'];
+ ?column? 
+----------
+ t
+(1 row)
+
 SELECT jsonb '{"a":null, "b":"qq"}' ?& '{}'::text[];
  ?column? 
 ----------
index 7cd34dbf4e7803d43d41a4711e638af8ca58e443..7c15b4c847652883a21d47b173c89ff5057b5d0c 100644 (file)
@@ -860,6 +860,12 @@ SELECT jsonb '{"a":null, "b":"qq"}' ?& ARRAY['c','d'];
  f
 (1 row)
 
+SELECT jsonb '{"a":null, "b":"qq"}' ?& ARRAY['a','a', 'b', 'b', 'b'];
+ ?column? 
+----------
+ t
+(1 row)
+
 SELECT jsonb '{"a":null, "b":"qq"}' ?& '{}'::text[];
  ?column? 
 ----------
index 3910b4af39bb06b1dbc780215d974d1d291ae6d6..21f4da9505cbf8bdf3ce66117771da924f6f558d 100644 (file)
@@ -191,6 +191,7 @@ SELECT jsonb '{"a":null, "b":"qq"}' ?& ARRAY['a','b'];
 SELECT jsonb '{"a":null, "b":"qq"}' ?& ARRAY['b','a'];
 SELECT jsonb '{"a":null, "b":"qq"}' ?& ARRAY['c','a'];
 SELECT jsonb '{"a":null, "b":"qq"}' ?& ARRAY['c','d'];
+SELECT jsonb '{"a":null, "b":"qq"}' ?& ARRAY['a','a', 'b', 'b', 'b'];
 SELECT jsonb '{"a":null, "b":"qq"}' ?& '{}'::text[];
 
 -- typeof