]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
hmmm.
authorJason Kirtland <jek@discorporate.us>
Tue, 5 Feb 2008 15:34:28 +0000 (15:34 +0000)
committerJason Kirtland <jek@discorporate.us>
Tue, 5 Feb 2008 15:34:28 +0000 (15:34 +0000)
lib/sqlalchemy/engine/base.py

index 9a7280065e40ca2c6c0bee7d30e6447f6ec9aaa6..1a13fdeeb836e17b4ed35c2eb00d093c9db4f56b 100644 (file)
@@ -974,12 +974,12 @@ class Connection(Connectable):
 
     # poor man's multimethod/generic function thingy
     executors = {
-        expression._Function : _execute_function,
-        expression.ClauseElement : execute_clauseelement,
-        Compiled : _execute_compiled,
-        schema.SchemaItem:_execute_default,
+        expression._Function: _execute_function,
+        expression.ClauseElement: execute_clauseelement,
+        Compiled: _execute_compiled,
+        schema.SchemaItem: _execute_default,
         schema.DDL: _execute_ddl,
-        str.__mro__[-2] : _execute_text
+        basestring: _execute_text
     }
 
     def create(self, entity, **kwargs):