1
我有具有以下結構的表的SQL服務器上的數據庫:WSO2 CEP和SQL服務器插入到與SQL Server端設置主鍵
ID has IDENTITY set to true.
當我進入WSO2 CEP和儘量使流傾倒的事件,將我收到以下錯誤表:
from MessageStream
insert into msg;
Error while dispatching events: Error while adding events to event table, Cannot insert explicit value for identity column in table 'EDS_MSG' when IDENTITY_INSERT is set to OFF.
org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException: Error while adding events to event table, Cannot insert explicit value for identity column in table 'EDS_MSG' when IDENTITY_INSERT is set to OFF.
是否有使用SiddhiQL不發送ID和讓SQL Server處理該主鍵與自動的方式增量值要?
您是否嘗試從'define table msg'中刪除'ID int'?我不熟悉'SiddhiQL',所以我只是猜測。 –
我還沒試過。我也有同樣的問題。我從來沒有在sql server之前連接過wso2。我會試試看。 – JoaoFilipeClementeMartins
你提到你的身份設置爲true,但你的意思是IDENTITY_INSERT設置爲上?這是兩件不同的事情。 –