ExecuteNonQuery() returns -1 in Update when records are updated

后端 未结 2 1164
执笔经年
执笔经年 2021-01-06 01:25

I\'ve verified that my method/Oracle procedure is working correctly, but in my C# I always get -1 returned from ExecuteNonQuery(). Consequently, the below bool is always fa

2条回答
  •  無奈伤痛
    2021-01-06 02:04

    I'm not an Oracle guy, but apparently there's a command:

    set feedback off
    

    which prevents it from returning the count of records affected. Is this line in the stored procedure? Or have you tried 'set feedback on'? Functionally I think this is just the reverse of SQL Server's SET NOCOUNT ON/OFF command.

提交回复
热议问题