1

使用

  • 乏味的 1.14
  • 续集 3.29
  • 节点 6.9.4

连接到:Windows Server 2008 R2 Std 上的 SQL Server 2005

节点控制台输出(尝试 DML):

Executing (default): UPDATE [OtifOrders] SET [onTime]=N'Short Lead Time / Add On',[inFull]=N'Product Substitution' OUTPUT INSERTED.* WHERE [orderNumber] = N'1024098924-1'
PATCH /api/otiforders/1024098924-1 500 302.990 ms - -

来自探查器的 SQL Server 错误消息:

如果该语句包含没有 INTO 子句的 OUTPUT 子句,则 DML 语句的目标表 OtifOrders 不能有任何启用的触发器。

其他人遇到过这个,你是怎么解决的?

不是 100% 确定这很乏味...

干杯

4

1 回答 1

4

Crap, Why is it always like that - as soon as I post the question to a forum I find the answer and it's right on front of my nose.

Anyway, here it is: https://github.com/sequelize/sequelize/issues/4807 AsientosContables_sql = sequelize.define('AsientosContables_sql', { }, { tableName: 'Asientos', hasTrigger: true });

于 2017-01-10T21:01:24.070 回答