]> 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)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 May 2014 16:00:37 +0000 (12:00 -0400)
commit939cb91667c451631ad8cdd08585104d7c2093c9
tree0be5f56c5a6296cfd8dee063badf83be47c3d26d
parent5992c6096a67497aeb705939d1059bbfa410c87e
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