bug(ProcedurePresentation.filtered_ids): using numbers bigger than pg limit should not raise an error

This commit is contained in:
mfo 2024-09-10 17:15:35 +02:00
parent 3e1bcb35d6
commit 8ebb076a29
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -331,6 +331,11 @@ describe ProcedurePresentation do
subject { procedure_presentation.send(:filtered_ids, procedure.dossiers.joins(:user), 'suivis') }
context 'for self table' do
context 'for id column' do
let(:filter) { [{ 'table' => 'self', 'column' => 'id', 'value' => '88116030300015' }] }
it { is_expected.not_to raise_error(PG::NumericValueOutOfRange) }
end
context 'for created_at column' do
let(:filter) { [{ 'table' => 'self', 'column' => 'created_at', 'value' => '18/9/2018' }] }