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
Is it possible to use deterministic ordering, but supply two columns and if the value for the first is null take the second value?
For instance, to achieve this in Rails I'd normally write something like order(Arel.sql("COALESCE(column_1, column_2) ASC")). Is functionality like this achievable with Closure Tree?
The text was updated successfully, but these errors were encountered:
tbrammar
changed the title
determinstic ordering using a second column if the value of the first is null
Determinstic ordering using a second column if the value of the first is null
Nov 30, 2021
Is it possible to use deterministic ordering, but supply two columns and if the value for the first is
null
take the second value?For instance, to achieve this in Rails I'd normally write something like
order(Arel.sql("COALESCE(column_1, column_2) ASC"))
. Is functionality like this achievable with Closure Tree?The text was updated successfully, but these errors were encountered: