Unsure why function doesn't work #2130
-
I'm using supabase as my database, and I am unsure why the following function does not work. It is giving me the error: 'structure of query does not match function result type'.
When I remove the begin and end, and change the language to SQL, it works fine. However, I can't change the language to sql as I want to add a lot more to this function, but I can't seem to get past this error. |
Beta Was this translation helpful? Give feedback.
Answered by
steve-chavez
Jan 21, 2022
Replies: 1 comment
-
What's the full error message? It should include the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wolfgangwalther
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's the full error message? It should include the
detail
error field.Also see https://dba.stackexchange.com/questions/220683/structure-of-query-does-not-match-function-result-type