From: Raimon Fs Date: 2009-02-26T01:30:27+09:00 Subject: Re: updating row with pg => success or failure Brian Candler wrote: > Raimon Fs wrote: >> Choi, Junegunn wrote: >>> I don't see any problem in the doc. Maybe you misread the sentence?: >>> "If the SQL command that generated the PGresult was **NOT ONE OF** ... >> >> Yes, I read and read and re-read ... > > Perhaps it's clearer if turned around: > > 0 is returned if the command is not one of (insert, update, delete, > move, fetch), or if no tuples were affected. > > Or negate it: > > A non-zero value is returned if the command is one of (insert, update, > delete, move, fetch) and one or more tuples were affected. thanks ! that's more clear ... :-) r. -- Posted via http://www.ruby-forum.com/.