Open jimmythigpen opened 5 months ago
I assume this is because the function argument "order" is quoted, and the quotes result in an inability to match with the table name. Some of the code in this repo for pulling the schema is using pg_get_function_arguments()
which does return "order"
for this function.
Bug report
Describe the bug
We are working with an
order
table and see unexpected behavior when generating types. This behavior may be due to the unfortunate use of a reserved word as a table name. We are already planning to update the table name in the future which resolves this issue, but wanted to at least surface the behavior.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
id
column, one calledhotel
, another calledorder
.supabase gen types typescript --local --schema public > src/generated/supabase.ts
)Expected behavior
We expect to see the created functions added as properties in the generated DB types for the
order
andprofile
tables, but this is missing from theorder
table.Screenshots
Code snipping below showing the generated types not including
test_func2
on the order table.System information
Additional context
Appreciate anyone taking the time to check this one out!