- MySQL catches exception on "describe" and reports as NoSuchTableError
- further fixes to sqlite booleans, weren't working as defaults
- fix to postgres sequence quoting when using schemas
+- fixed direct execution of Compiled objects
0.3.0
- General:
# poor man's multimethod/generic function thingy
executors = {
sql.ClauseElement : execute_clauseelement,
- sql.Compiled : execute_compiled,
+ sql.ClauseVisitor : execute_compiled,
schema.SchemaItem:execute_default,
str.__mro__[-2] : execute_text
}
for row in r:
l.append(row)
self.assert_(len(l) == 3)
-
+
+ def test_compiled_execute(self):
+ s = select([self.users], self.users.c.user_id==bindparam('id')).compile()
+ c = testbase.db.connect()
+ print repr(c.execute(s, id=7).fetchall())
+
def test_global_metadata(self):
t1 = Table('table1', Column('col1', Integer, primary_key=True),
Column('col2', String(20)))