Open joeally opened 1 year ago
In the situation where we have a view in which one of the columns has the row type of a table, unknown is generated for that column.
I've already created a fix for this in the PR #533
Create a view in the following form that selects from an existing table of yours.
e.g
CREATE VIEW rows_with_user_view AS ( SELECT *, users as user FROM rows INNER JOIN users on rows.user_id = user.id );
Run type generation and search for rows_with_user_view
rows_with_user_view
{ ...typescript public: { ... Views: { rows_with_user_view: { Row: { ... user: unknown } } } ... } ... }
{ ... public: { ... Views: { rows_with_user_view: { Row: { ... user: Database["public"]["Tables"]["users"]["Row"] } } } ... } ... }
Is there any chance someone can look at my PR to fix this #533? It's a really short one which should only take a few minutes.
Bug report
Describe the bug
In the situation where we have a view in which one of the columns has the row type of a table, unknown is generated for that column.
I've already created a fix for this in the PR #533
To Reproduce
Create a view in the following form that selects from an existing table of yours.
e.g
Run type generation and search for
rows_with_user_view
Expected behavior
System information