Rowsaffected return from NonExecQuery with stored procedure problem

From: DonnaR <donna(at)therudds(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Rowsaffected return from NonExecQuery with stored procedure problem
Date: 2009-07-13 10:01:32
Message-ID: 24458909.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


I'm using PostgreSQl NPGSQL and C#.
Does the Rowsaffected return value work correctly when running a stored
procedure to Insert, Update or Delete. According to the documentation, it
should work with Insert, Update and Delete querys via ExecNonQuery, but
can't find out if it should work if you do the query via a stored proc
rather than 'direct'.
It's not working for me - I always get -1 back regardless of whether if it
does the query successfully or not, but if I do it via a direct "Insert
into..." command (rather than via a stored procedure with the Insert query
in), the 'rowsaffected' value is correct.
Is it just that it doesn't work wit a stored Proc, or have I got something
in my database not set up properly?
I'm desperate for an answer and have found several other similar questions
on various formus but no-one ever answers!
--
View this message in context: http://www.nabble.com/Rowsaffected-return-from-NonExecQuery-with-stored-procedure-problem-tp24458909p24458909.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2009-07-13 10:10:58 Re: Question
Previous Message Pavel Stehule 2009-07-13 09:43:58 Re: Start With... Connect By?