You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG: statement: SELECT "tests_compositebitfieldtestmodel"."id", "tests_compositebitfieldtestmodel"."flags_1", "tests_compositebitfieldtestmodel"."flags_2" FROM "tests_compositebitfieldtestmodel" WHERE "tests_compositebitfieldtestmodel"."id" IN (SELECT U0."id" FROM "tests_bitfieldtestmodel" U0 WHERE NOT (U0."another_name" = ("tests_bitfieldtestmodel"."another_name" | 2)))
ERROR: invalid reference to FROM-clause entry for table "tests_bitfieldtestmodel" at character 312
The issue is that the WHERE condition should be updated with a new aliased table name, "U0" in this case. This has something to do with the django field method relabel_aliases(), I think, but I can't track it down exactly.
If someone can explain how to fix it I'm happy to build and test a fix, but I'm not too familiar with the depths of django here. :)
The text was updated successfully, but these errors were encountered:
Also I should say I attempted to handle a relabel_aliases() in BitQueryLookupWrapper, but at the point where I could trace things through, it seemed like the filter value was still a Bit. Adding the alias map handling into the Bit itself seemed dirty, so, not sure where things should go...
I have a test case: taylorhughes@0ed47fc
That causes the following error:
The issue is that the WHERE condition should be updated with a new aliased table name, "U0" in this case. This has something to do with the django field method
relabel_aliases()
, I think, but I can't track it down exactly.If someone can explain how to fix it I'm happy to build and test a fix, but I'm not too familiar with the depths of django here. :)
The text was updated successfully, but these errors were encountered: