#35028: psycopg3: distinct query iteration causes
psycopg.errors.InvalidColumnReference: for SELECT DISTINCT, ORDER BY
expressions must appear in select list
-------------------------------------+-------------------------------------
     Reporter:  Richard Ebeling      |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  5.0
  (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 Richard Ebeling):

 Replying to [comment:2 Simon Charette]:
 > Have [https://docs.djangoproject.com/en/5.0/ref/databases/#server-side-
 parameters-binding you enabled server-side parameters bindings]?

 No, in the database configuration, no `OPTIONS` are defined, so it should
 default to client-side binding.

 The test I posted above fails independently of this setting (i.e., both
 with `"OPTIONS": { "server_side_binding": True }` and with `"OPTIONS": {
 "server_side_binding": False }`).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35028#comment:3>
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/0107018c5e5d8d04-209be180-fbec-498c-becc-1c519e940983-000000%40eu-central-1.amazonses.com.

Reply via email to