You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Database Driver & Version: MySQL 8.0.33 (Docker Image)
Operating System and Version: Windows 11
Browser type and version: MS Edge
Reproduction Repository:
Description:
When a query utilizes withCount and making a field sortable, the raw sql query that gets added by #sortable function prefixes an aliased subquery field with the table name which causes an error: Error Code: 1054. Unknown column 'categories.products_count' in 'order clause'
I am not sure if the query is sql version dependent but I'm thinking that aliased fields should not be prefixed since its not a default table field.
Description:
When a query utilizes
withCount
and making a fieldsortable
, the raw sql query that gets added by #sortable function prefixes an aliased subquery field with the table name which causes an error:Error Code: 1054. Unknown column 'categories.products_count' in 'order clause'
I am not sure if the query is sql version dependent but I'm thinking that aliased fields should not be prefixed since its not a default table field.
Faulty
Working
Detailed steps to reproduce the issue on a fresh Nova installation:
Create lens class
Define the query and filter just like in the image below and also making the aliased field sortable
Sort the field in the actual nova application in the browser
The text was updated successfully, but these errors were encountered: