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
When using mariadb dialect I try to order by a computed column, it instead tries to get the literal column on the table.
For example I have a computer column distance, trying to get that column and use it to order the table I get a query like this:
SELECT
(ST_Distance(`homeConnec`.`lngLat`, POINT(0,0))) AS `distance`
FROM (
SELECT `homeConnec`.*, count(*) OVER () AS `$total`
FROM Home `homeConnec`
ORDER BY `homeConnec`.`distance` ASC
) `homeConnec`
ORDER BY `homeConnec`.`distance`
Which throws an error Unknown column 'homeConnec.distance' as expected.
The text was updated successfully, but these errors were encountered:
When using mariadb dialect I try to order by a computed column, it instead tries to get the literal column on the table.
For example I have a computer column
distance
, trying to get that column and use it to order the table I get a query like this:Which throws an error
Unknown column 'homeConnec.distance'
as expected.The text was updated successfully, but these errors were encountered: