search.highlight_display_fields can be called with invalid parameters

Bug #1779392 reported by Jason Boyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Undecided
Unassigned

Bug Description

Eg 3.1

There are situations where search.highlight_display_fields can be called with an hl_map_string parameter of just ''::HSTORE which causes an "Unexpected end of string" error in Postgres. Rather than sending a "harmless" error causing query to the DB we can just not send that query at all. This way something branchy comes.

Revision history for this message
Jason Boyer (jboyer) wrote :
tags: added: pullrequest
Revision history for this message
Mike Rylander (mrylander) wrote :

This looks good to me. Picked to master and 3.1.

Thanks, Jason!

Changed in evergreen:
status: New → Fix Committed
Revision history for this message
Jeff Davis (jdavis-sitka) wrote :

Marking at Fix Released since the commit is in all current release branches as well as master.

Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers