summaryrefslogtreecommitdiff
path: root/src/test/regress/sql/arrays.sql
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-04-05 03:07:26 +0000
committerBruce Momjian <bruce@momjian.us>2004-04-05 03:07:26 +0000
commit0969dc867b9e1f7f08103170f79fcd0f22298af8 (patch)
tree1b813212840f49b21946e7f4f568727eb383a8e2 /src/test/regress/sql/arrays.sql
parent6165bbab8cb3518269e24bf9ced0be443f05e66c (diff)
Allow LIKE/ILIKE to appear in more places in a query.
Fabien COELHO
Diffstat (limited to 'src/test/regress/sql/arrays.sql')
-rw-r--r--src/test/regress/sql/arrays.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/regress/sql/arrays.sql b/src/test/regress/sql/arrays.sql
index 3bc800cef21..629ca15fb1c 100644
--- a/src/test/regress/sql/arrays.sql
+++ b/src/test/regress/sql/arrays.sql
@@ -183,3 +183,13 @@ set enable_seqscan to off;
select * from arr_tbl where f1 > '{1,2,3}' and f1 <= '{1,5,3}';
-- note: if above select doesn't produce the expected tuple order,
-- then you didn't get an indexscan plan, and something is busted.
+
+-- test [not] (like|ilike) (any|all) (...)
+select 'foo' like any (array['%a', '%o']); -- t
+select 'foo' like any (array['%a', '%b']); -- f
+select 'foo' like all (array['f%', '%o']); -- t
+select 'foo' like all (array['f%', '%b']); -- f
+select 'foo' not like any (array['%a', '%b']); -- t
+select 'foo' not like all (array['%a', '%o']); -- f
+select 'foo' ilike any (array['%A', '%O']); -- t
+select 'foo' ilike all (array['F%', '%O']); -- t