You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query model X and include model Y on any schema (eg dbo) and mark it as separate. The query will fail, because the resulting SQL will have (roughly, without sequelize sugar) this structure:
SELECT*FROM [MyTable]
JOIN [MyOtherTable] ON [MyTable].[myOtherTableId] = [MyOtherTable].[id]
SequelizeDatabaseError: Invalid object name 'myOtherTable'.
The text was updated successfully, but these errors were encountered:
Issue
Versions
Issue type
Actual behavior
It is impossible to include a model on a specific schema to a query on another model if the query is marked as separate.
Expected behavior
It is possible to include a model from a specific schema to a query on another model if the query is marked as separate.
Steps to reproduce
Query model X and include model Y on any schema (eg dbo) and mark it as separate. The query will fail, because the resulting SQL will have (roughly, without sequelize sugar) this structure:
SequelizeDatabaseError: Invalid object name 'myOtherTable'.
The text was updated successfully, but these errors were encountered: