What you are doing?
var Task = sequelize.define('task', {
title: Sequelize.STRING,
rating: { type: Sequelize.STRING, defaultValue: 3 }
}, {
hasTrigger: true
});
Task.bulkCreate([{
title: "Fix bug",
rating: "5"
}, {
title: "Write documentation",
rating: "1"
}], {
returning: true
});
// Error happens
What do you expect to happen?
Promise should return a list of successfully inserted instances with resulting values of autoIncrement attributes.
What is actually happening?
Unhandled rejection SequelizeDatabaseError: The target table '%TABLE_NAME_HERE%' of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause.
Dialect: mssql
Database version: SQL Server 2014
Sequelize version: 3.24.3
What you are doing?
What do you expect to happen?
Promise should return a list of successfully inserted instances with resulting values of autoIncrement attributes.
What is actually happening?
Unhandled rejection SequelizeDatabaseError: The target table '%TABLE_NAME_HERE%' of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause.
Dialect: mssql
Database version: SQL Server 2014
Sequelize version: 3.24.3