Include doesn't seem to work with TediousJS and MSSQL #17109
Labels
pending-approval
Bug reports that have not been verified yet, or feature requests that have not been accepted yet
type: bug
Issue Creation Checklist
Bug Description
I'm adding objects into a SQL Server database with Sequelize.
I perform all operations in one single transaction. When I want to retrieve the inserted objects, the associated models aren't fetched. But if I query them separately, they are found.
Reproducible Example
Here is the link to the SSCCE for this issue:
This code works:
But this code doesn't return the include:
Generated SQL of the two selects:
and:
Output from
modelField.get({ plain: true })
:The associations are defined like this:
SequelizeModel
And SequelizeModelField:
What do you expect to happen?
I expect the include attributes to be present
What is actually happening?
The included attributes aren't present
Environment
Would you be willing to resolve this issue by submitting a Pull Request?
Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.
The text was updated successfully, but these errors were encountered: