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
with references declared and another declaration such as user.belongsTo(Role, { foreignKey: 'ROLE_ID' }); and MS SQL Triggers are on for the Users table
and we simply call User.create(newUser);.
What do you expect to happen?
I want to either raise an exception that I'm doing something horribly wrong or really why is there a duplicate in the first place?
What is actually happening?
The generated temporary table duplicates the column name ROLE_ID.
Dialect: mysql Dialect version: latest Database version: MS SQL Server 2012 Sequelize version: 4.33.4 Tested with latest release: Yes (If yes, specify that version)
The text was updated successfully, but these errors were encountered:
Please use Github Issue Tracker only for reporting bugs, requesting new features or discussions. Ask questions on Stackoverflow sequelize.js tag or Slack. While I would like to help answer any questions but it still take too much time.
If you are reporting a bug please isolate it as SSCCE, present it nicely and follow issue template. This will help maintainers and contributors understand your issue quickly.
If you are requesting a feature spend some time to properly present your use case with some examples, current and expected outcome.
What are you doing?
If a model definition has a reference declare such as: (The rest of the model definition are omitted)
with references declared and another declaration such as
user.belongsTo(Role, { foreignKey: 'ROLE_ID' });
and MS SQL Triggers are on for the Users tableand we simply call
User.create(newUser);
.What do you expect to happen?
I want to either raise an exception that I'm doing something horribly wrong or really why is there a duplicate in the first place?
What is actually happening?
The generated temporary table duplicates the column name
ROLE_ID
.Dialect: mysql
Dialect version: latest
Database version: MS SQL Server 2012
Sequelize version: 4.33.4
Tested with latest release: Yes (If yes, specify that version)
The text was updated successfully, but these errors were encountered: