Leaklens

django__django-15503

has_key, has_keys, and has_any_keys JSONField() lookups don't handle numeric keys on SQLite, MySQL, and Oracle.

Verdict: the issue points to the file or function that was changed (Tier B).

has_key, has_keys, and has_any_keys lookups uses compile_json_path() on SQLite, MySQL, and Oracle which uses array paths for integers. We shouldn't use array paths for these lookups.

The two checks disagreed (stated fix vs. points to it); the lower reading shown: “has_key, has_keys, and has_any_keys lookups uses compile_json_path() on SQLite, MySQL, and Oracle which uses array paths for integers. We shouldn't u…”

All SWE-bench Verified tasks · more django/django tasks · How the check works