On Tuesday, March 6, 2018 at 2:05:27 AM UTC-8, Wojciech Maciejak wrote: > > Hi Jeremy! I'm curious why AliasedExpression doesn't have `desc` and `asc` > method like `OrderedExpression`? > Maybe I'm don't have right, but aliases in the ORDER BY part, isn't > allowed by the standard? >
AliasedExpression is for "foo AS bar", and "foo AS bar DESC" isn't allowed in ORDER BY. You can reference the aliases in ORDER BY (e.g. "bar DESC"), but you can't order on the aliased expression itself. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
