#36906: Oracle guard for coalescing text & varchar doesn't fathom JSONField
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:
                                     |  kanin.kearpimy@…
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by kanin.kearpimy@…):

 Unexpectedly after writing test, I found out `postgres` does throw similar
 error. However, my implementation doesn't negatively affect `oracle,
 mysql, mariadb, sqlite` (I ran db test in my local and pipeline, no
 evidence of failure regarding those DBs).

 ```
   File "/django/source/django/db/backends/utils.py", line 92, in
 _execute_with_wrappers
     return executor(sql, params, many, context)
   File "/django/source/django/db/backends/utils.py", line 100, in _execute
     with self.db.wrap_database_errors:
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/django/source/django/db/utils.py", line 94, in __exit__
     raise dj_exc_value.with_traceback(traceback) from exc_value
   File "/django/source/django/db/backends/utils.py", line 105, in _execute
     return self.cursor.execute(sql, params)
            ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
   File "/usr/local/lib/python3.14/site-packages/psycopg/cursor.py", line
 117, in execute
     raise ex.with_traceback(None)
 django.db.utils.ProgrammingError: COALESCE types character varying and
 jsonb cannot be matched
 LINE 1: ...data", COALESCE("db_functions_article"."summary", "db_functi...
 ```
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36906#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019cce6eedd6-1d21a3fa-176b-4cac-a14c-0d0c7ebcbf7a-000000%40eu-central-1.amazonses.com.

Reply via email to