-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Lines 141 to 142 in 7d158ec
| const getColumns = 'select * from information_schema.columns ' + | |
| `where table_name = '${mappedType}'` |
Let's say I have a schema named schema-v1 and another named schema-v2 that both have a table called users. If schema-v1 has a column in users like users.email then the below if statement will wrongly think that the column exists in schema-v2. This is because information_schema.columns returns a list of columns in all schemas.
Line 188 in 7d158ec
| if (!tableColumns[type].some(row => row.column_name === field) && |
Solution should be to specify the exact schema to search in.
Metadata
Metadata
Assignees
Labels
No labels