Comment (by Mariusz Felisiak):
Replying to [comment:1 Mariusz Felisiak]:
> Unexpectedly, it works fine on Oracle 23c without `CASE ...`.
[https://oracle-base.com/articles/23c/boolean-data-type-23c#boolean-table-
columns Oracle 23c introduced] `BOOLEAN` data type in SQL 😱 I never
expected this to finally happen.
--
Ticket URL: <https://code.djangoproject.com/ticket/35018#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Simon Charette):
> Oracle 23c introduced BOOLEAN data type in SQL 😱 I never expected this
to finally happen.
Only a few more years of `CASE/WHEN` wrapping shenanigans I guess 😅.
I support we'll want to branch of
`compiler.connection.features.supports_boolean_expr_in_select_clause` here
I guess?
--
Ticket URL: <https://code.djangoproject.com/ticket/35018#comment:3>
Comment (by Mariusz Felisiak):
Replying to [comment:3 Simon Charette]:
> I support we'll want to branch of
`compiler.connection.features.supports_boolean_expr_in_select_clause` here
I guess?
Yes, working on this. I need to investigate some
[https://github.com/oracle/python-oracledb/issues/263 issues] around
binding parameters, it was not enough to switch the flag.
--
Ticket URL: <https://code.djangoproject.com/ticket/35018#comment:4>
* owner: nobody => Mariusz Felisiak
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/35018#comment:5>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/17585 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/35018#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"fcf95e592774a6ededec35481a2061474d467a2b" fcf95e5]:
{{{
#!CommitTicketReference repository=""
revision="fcf95e592774a6ededec35481a2061474d467a2b"
Fixed #35018 -- Fixed migrations crash on GeneratedField with BooleanField
as output_field on Oracle < 23c.
Thanks Václav Řehák for the report.
Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35018#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"5f89da0837009debda998af30f280d7075fb1a4d" 5f89da0]:
{{{
#!CommitTicketReference repository=""
revision="5f89da0837009debda998af30f280d7075fb1a4d"
[5.0.x] Fixed #35018 -- Fixed migrations crash on GeneratedField with
BooleanField as output_field on Oracle < 23c.
Thanks Václav Řehák for the report.
Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.
Backport of fcf95e592774a6ededec35481a2061474d467a2b from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35018#comment:8>