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
Now in a LINQ query, I can call Items.select(item => new LocalizedItem { title = Localize(item, new [] {"en", "de"} ) } , and the query will be translated to (details omitted):
SELECT COALESCE(e."Title"#>>'{en,value}', e."Title"#>>'{de,value}') AS "Title"
This works great, however this only works with 2 coalescing arguments. Anything after the 2nd argument is never generated into SQL.
How can I work around this limitation?
The text was updated successfully, but these errors were encountered:
Summary:
It seems impossible to generate
COALESCE(a, b, c, d)
. OnlyCOALESCE(a, b)
will be generated.Details:
I have a custom localization function that is defined as such:
Now in a LINQ query, I can call
Items.select(item => new LocalizedItem { title = Localize(item, new [] {"en", "de"} ) }
, and the query will be translated to (details omitted):This works great, however this only works with 2 coalescing arguments. Anything after the 2nd argument is never generated into SQL.
How can I work around this limitation?
The text was updated successfully, but these errors were encountered: