© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
9 replies
Testhor

Failed to run SQL Query, what is wrong with my function?

I'm trying to create a small function to return just the column user_metadata from auth.users. The select seems to work on it's own, but when I try to fun the code in the picture, I get a 'Failed to run sql query: syntax error at or near "END"' and I can't find what I did wrong... Can someone help me?
image.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Failed to run SQL query
SupabaseSSupabase / help-and-questions
4y ago
What is wrong with my RPC function?
SupabaseSSupabase / help-and-questions
4y ago
Failed to delete creator_roles: Failed to run sql query: Query read timeout
SupabaseSSupabase / help-and-questions
4w ago
Failed to run sql query column does not exist
SupabaseSSupabase / help-and-questions
4y ago