Comment 1 for bug 698344

Revision history for this message
Jamu Kakar (jkakar) wrote :

You can solve this problem now with this code:

from storm.expr import Func

result = store.find(t1, In(Func("ROW", t1.c1, t1.c2), Select((t2.c3, t2.c4))))

You can trivially implement a Row expression with this code:

from storm.expr import NamedFunc

class Row(NamedFunc):

    name = "ROW"

and then do:

result = store.find(t1, In(Row(t1.c1, t1.c2), Select((t2.c3, t2.c4))))

That said, this is probably still a bug that should be fixed.