Hi David,
Thanks for response. I understand it now. I was assuming that Value auto
typecasts to the field that we are querying. This makes sense.
Thank you for taking time to respond.
Cheers
Nitin
On Thursday, October 26, 2023 at 3:52:17 AM UTC-4 David Sanders wrote:
> Hi Nitin,
>
> Not sure
Hi Nitin,
Not sure what db you're using but will explain assuming PG.
In this particular example, Django uses the `->` operator which requires
that we compare jsonb types. The `__in=("Program1", "Program2")` is
converted to jsonb via `DatabaseOperations.adapt_json_value()` where as
`Value()`