AnyEvent::DBI and postgresql
Marc Lehmann
schmorp at schmorp.de
Fri May 16 17:40:10 CEST 2014
On Fri, May 09, 2014 at 08:11:19PM +0300, Andrey Khlopenov <khlopenov.andrey at gmail.com> wrote:
> When function get $fatal in on_error, it's reconnecting to DB. It's working
> with SQLite.
> But when I try it with PostgreSQL, it's not working.
> Had in STDERR "no connection to the server"(when shuting down PostgreSQL),
> but $fatal is undef.
> What is problem with it?
Can't really judge without seeing an actual program (your program leaves out
the actual call that is supposed to fail, I assume?), but whether an error is
fatal or not depends on the database driver.
Maybe the postgresql driver errornously prints an error message to stderr
(which it shouldn't do obviously), but otherwise continues to work in some
way?
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list