On Mon, Jul 28, 2014 at 1:49 PM, David Welton <[email protected]> wrote:
>> OK, the problem is that the Postgres adapter returns {ok,0} from the update
>> attempt, instead of the expected {ok, _, _, [0]}.  It's not clear to me
>> whether the adapter should be changed, or if the change should happen in
>> boss_db:incr().  For now, I've implemented a local function to do the job.
>
> I think the adapter is the problem.  It should handle {ok, 0}.

https://github.com/davidw/boss_db/commit/98646d61de64a00a6a740509de4c8961b3b73dfb

I don't think the {error} clause made much sense, and so I just kept
the two ok clauses, which seems to fix things.

-- 
David N. Welton

http://www.welton.it/davidw/

http://www.dedasys.com/

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CA%2Bb9R_v5mmjRA8%2B_wtSNzF%2B61Od0XJu__px77Tai1MB3ycUbdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to