On Oct 17, 2007, at 7:41 PM, dykang wrote:
> query2 = sqlalchemy.select([test], > sqlalchemy.and_ ( > test.c.id == sqlalchemy.bindparam ('id'), > test.c.name == sqlalchemy.bindparam('name'), > ) > ) > currently you'd have to say test.c.name == bindparam('name', type_=String). when you say something like test.c.name == 'foo', the __eq__() method on "test.c.name" looks at the other side, sees a literal, and converts to a bindparam with a type matching its own. with bindparam(), it doesnt make that assumption right now. but since you bring it up, its probably a good idea for __eq__() to also set the type on a passed in bindparam(), if the bindparam does not already have a type assigned to it...so i added ticket 819 for that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---