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
SELECT*FROM`category`AS`t1`JOIN`category_tree`AS`t2`ON`t2`.`successor_id`=`t1`.`id`WHERE
(`t2`.`predecessor_id`=7AND`distance`=1)
ORDER BY`category.name`ASC
There is a table name used instead of table alias in order by clause.
With regards,
Kody
The text was updated successfully, but these errors were encountered:
Thank you for pointing this out. I was afraid of this situations, that's why I haven't released a npm version with sql-query yet. I'm going to fix this now.
Hi,
Thank you very much for your work on this interresting project. It helps me a lot.
It seems there is a problem with ordering of query through many association after the conversion to sql-query using.
Regarding to #68 model definition following code produced error.
Produced SQL Code
There is a table name used instead of table alias in order by clause.
With regards,
Kody
The text was updated successfully, but these errors were encountered: