Closed olirice closed 3 months ago
When function bodies don't fully qualify their references e.g.
create function xyz() return text as $$ select some_func() $$
then some_func must be on the querying user's search path in order for it to function.
some_func
99% of the time, its better to fully qualify the function
create function xyz() return text as $$ select <some_schema>.some_func() $$
we can make this mandatory by enforcing that functions set their search path to ''
create function xyz() return text set search_path = '' as $$ select <some_schema>.some_func() $$
resolved by https://github.com/supabase/splinter/blob/main/lints/0011_function_search_path_mutable.sql
When function bodies don't fully qualify their references e.g.
then
some_func
must be on the querying user's search path in order for it to function.99% of the time, its better to fully qualify the function
we can make this mandatory by enforcing that functions set their search path to ''