The fix for issue #496 ("Cached plan must not change result type" when using PreparedStatement cache across schemas) doesn’t work when the default schema is being assigned via explicit execution of a SET statement that renders the search_path keyword in UPPER CASE.