Commits

jason kirtland committed 2d34c98

bind/connectable compat, allow .bind = None
fix import for DBAPIError raise

  • Participants
  • Parent commits 4bca80c

Comments (0)

Files changed (2)

lib/sqlalchemy/engine/default.py

             # to appropriate character upon compilation
             self.positional = True
         else:
-            raise DBAPIError("Unsupported paramstyle '%s'" % self._paramstyle)
+            raise exceptions.DBAPIError("Unsupported paramstyle '%s'" % self._paramstyle)
 
     def _get_ischema(self):
         if self._ischema is None:

lib/sqlalchemy/schema.py

         
         if bind is None:
             bind = kwargs.pop('engine_or_url', None)
-        if bind is None:
-            raise exceptions.ArguemntError("'bind' argument is required for connect()")
         from sqlalchemy.engine.url import URL
         if isinstance(bind, (basestring, URL)):
             self._bind = sqlalchemy.create_engine(bind, **kwargs)