Hi,

I'd like to express an advanced order_by clause (not just a column).
At the moment I have:

   OneToMany('OtherTable', order_by='field1')

I'd like to be able to put in an sql function (in this case a postgres
function) in the order_by clause, e.g.:

   OneToMany('OtherTable', order_by="position(' ' in field1)")

However the elixir order_by expects column names.

What would be the easiest way around this?

Thanks!

Eoghan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to