Skip to content
Advertisement

Return result of CASE with Posgres SQL function

I am trying to write a simple SQL function that will be used as a computed field in Hasura.io platform.

This gives me an error missing FROM-clause entry for table "calling_row".

I tried looking through several docs, but it doesn’t make any sense to me.

Advertisement

Answer

Probably that causes upper case letters, so if your original column name is seekerUserId, then into your function postgres converts it as seekeruserid, and that column is not found.

Try column names into double quotes, like:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement