From: Brian Candler Date: 2009-02-26T00:34:38+09:00 Subject: Re: updating row with pg => success or failure 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. -- Posted via http://www.ruby-forum.com/.