mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Fix bug #4814 (wrong subscript in consistent-function call), and add some
minimal regression test coverage for matchPartialInPendingList().
This commit is contained in:
@@ -361,3 +361,14 @@ SELECT count(*) FROM test_tsvector WHERE a @@ to_tsquery('345&qwerty');
|
||||
INSERT INTO test_tsvector (t) VALUES ('345 qwerty');
|
||||
|
||||
SELECT count(*) FROM test_tsvector WHERE a @@ to_tsquery('345&qwerty');
|
||||
|
||||
-- test finding items in GIN's pending list
|
||||
create temp table pendtest (ts tsvector);
|
||||
create index pendtest_idx on pendtest using gin(ts);
|
||||
insert into pendtest values (to_tsvector('Lore ipsam'));
|
||||
insert into pendtest values (to_tsvector('Lore ipsum'));
|
||||
select * from pendtest where 'ipsu:*'::tsquery @@ ts;
|
||||
select * from pendtest where 'ipsa:*'::tsquery @@ ts;
|
||||
select * from pendtest where 'ips:*'::tsquery @@ ts;
|
||||
select * from pendtest where 'ipt:*'::tsquery @@ ts;
|
||||
select * from pendtest where 'ipi:*'::tsquery @@ ts;
|
||||
|
||||
Reference in New Issue
Block a user