This is exactly what I was looking for, thank you. Tom
On Nov 23, 2009 12:42 PM, "Conor" <conor.edward.da...@gmail.com> wrote: Tom Burdick wrote: > Ok, here's a small test. It actually works fine when using sqlite, but > not wh... You can use sqlalchemy.cast() to coerce the type on the DB side: coerced_teststr = cast(teststr, column.type) records = session.query(History).filter(column==coerced_teststr) -Conor -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. T... -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=.