mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Fix bugs in contrib/pg_trgm's LIKE pattern analysis code.
Extraction of trigrams did not process LIKE escape sequences properly, leading to possible misidentification of trigrams near escapes, resulting in incorrect index search results. Fujii Masao
This commit is contained in:
@ -49,6 +49,7 @@ explain (costs off)
|
||||
select * from test2 where t ilike '%BCD%';
|
||||
select * from test2 where t like '%BCD%';
|
||||
select * from test2 where t like '%bcd%';
|
||||
select * from test2 where t like E'%\\bcd%';
|
||||
select * from test2 where t ilike '%BCD%';
|
||||
select * from test2 where t ilike 'qua%';
|
||||
drop index test2_idx_gin;
|
||||
@ -60,5 +61,6 @@ explain (costs off)
|
||||
select * from test2 where t ilike '%BCD%';
|
||||
select * from test2 where t like '%BCD%';
|
||||
select * from test2 where t like '%bcd%';
|
||||
select * from test2 where t like E'%\\bcd%';
|
||||
select * from test2 where t ilike '%BCD%';
|
||||
select * from test2 where t ilike 'qua%';
|
||||
|
Reference in New Issue
Block a user