Supabase client .schema()
change persists accross all instructions instead of the current one
#573
Closed
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
The
.schema()
method from the (async) Supabase client sets the schema as default, affecting the whole application instead of changing the schema of the current query only.To Reproduce
Steps to reproduce the behavior:
public
) schema.pgmq_public
schema.Expected behavior
The code above should run without problems, but the second
await client.table("tasks").select("*").execute()
crashes with the following exception:As you can see, it is trying to find
pgmq_public.tasks
and notpublic.tasks
even though I didn't specify the schema in that instruction, just like the first one. So, the schema change is not affecting one query, but it persists for all following instructions.Screenshots
If applicable, add screenshots to help explain your problem.
System information
The text was updated successfully, but these errors were encountered: