]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Another Variant for detecting if a connection is closed
authorDirk Mueller <dmueller@suse.com>
Thu, 8 May 2014 15:07:44 +0000 (17:07 +0200)
committerDirk Mueller <dmueller@suse.com>
Sun, 11 May 2014 16:15:16 +0000 (18:15 +0200)
commit7ee8cd8f5ea609a8bef1153fdf85c15a2b5abcc3
treeba5e4c7d851fccbda2a2a730e0bf69ca3c32d8db
parentc8873b31f0c87ba0d1a7518b36af7151dec34be4
Another Variant for detecting if a connection is closed

If there is a closed attribute on the connection and
it is true, return true. Implements a todo in the code
and helps in one specific disconnect case where it previously
did not match because the error message was "unknown error".
lib/sqlalchemy/dialects/postgresql/psycopg2.py