fix to_tsquery disallowed chars
This commit is contained in:
parent
8320c66414
commit
2d68d7dc59
2 changed files with 7 additions and 1 deletions
|
@ -198,5 +198,11 @@ describe DossierSearchService do
|
|||
|
||||
it { expect(subject.size).to eq(1) }
|
||||
end
|
||||
|
||||
describe 'search with a single forbidden character should not crash postgres' do
|
||||
let(:terms) { '? OCTO' }
|
||||
|
||||
it { expect(subject.size).to eq(3) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue