SA version? sql dialect? what's table definition? On Thursday 03 July 2008 14:43:44 Marin wrote: > I use the following code: > query = meta.Session.query(db.Object) > all_objects = [1,2,3] > objects = query.filter(db.Object.ObjectID.in_(*all_objects)).all() > > And I get this error: > SADeprecationWarning: passing in_ arguments as varargs is > deprecated, in_ takes a single argument that is a sequence or a > selectable > > Am I doing something wrong? Because without the * > objects = query.filter(db.Object.ObjectID.in_(all_objects)).all() > It throws another error: > ProgrammingError('(ProgrammingError) operator does not exist: > bigint = integer[] > LINE 3: WHERE "Object"."ObjectD" = ARRAY[1, 3] HINT: No operator > matches the given name and argument type(s). You might need to add > explicit type casts.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---