[5.x]: invalid input syntax for type integer
when ordering by score
#14761
Labels
invalid input syntax for type integer
when ordering by score
#14761
What happened?
Description
Ordering by
score
on Postgres results in this error:Steps to reproduce
This query will result in the error:
{% set entries = craft.entries().search('keyword').orderBy('score').all() %}
Ordering with another param works:
{% set entries = craft.entries().search('keyword').orderBy('postDate desc').all() %}
Expected behavior
Able to order by score
Actual behavior
Errors as above
Craft CMS version
5.0.1
PHP version
8.2
Operating system and version
No response
Database type and version
PostgreSQL 14/15/16
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: