Commits

Mike Bayer committed b42d91d

- Connection.invalidate() checks for closed status
to avoid attribute errors. [ticket:1246]

  • Participants
  • Parent commits 4c93970
  • Branches rel_0_4

Comments (0)

Files changed (2)

 
     - Fixed bug in composite types which prevented a primary-key
       composite type from being mutated [ticket:1213].
+
+- sql
+    - Connection.invalidate() checks for closed status 
+      to avoid attribute errors. [ticket:1246]
       
 0.4.8
 =====

File lib/sqlalchemy/engine/base.py

         operations in a non-transactional state.
 
         """
+        if self.closed:
+            raise exceptions.InvalidRequestError("This Connection is closed")
 
         if self.__connection.is_valid:
             self.__connection.invalidate(exception)