Comment 3 for bug 682989

Revision history for this message
Thomas Herve (therve) wrote : Re: set() ignores ClassAlias, updates wrong rows

Here is a simple test case:

    def test_alias_reference(self):
        c = StringIO()
        debug(True, c)
        Bar1 = ClassAlias(Bar, "bar1")
        self.store.find(Bar1, Bar1.foo == None).one()
        data = c.getvalue()
        self.assertNotIn("bar.foo_id IS NULL", data)

Unfortunately it's more complicated than I thought. I don't know how to fix that for now.