#35778: Use native JSONObject on Postgres 16+ with server side bindings
-------------------------------------+-------------------------------------
     Reporter:  john-parton          |                    Owner:  (none)
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by john-parton):

 My general opinion/gut feeling is:

 1. Always cast, even when server-side bindings is off. It's one fewer
 conditional which means the function is lower complexity.
 2. Wrap keys in parenthesis for all backends that use the as_native
 method. Again, fewer conditionals, which means lower complexity.

 But I'm happy to be swayed.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35778#comment:2>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/0107019210b05e27-932e50a5-d003-457c-9cf5-6a3cd87a21c8-000000%40eu-central-1.amazonses.com.

Reply via email to