#34955: Make available the string concatenation operator `||`  for PostgreSQL
-------------------------------------+-------------------------------------
     Reporter:  Paolo Melchiorre     |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  field, database,     |             Triage Stage:
  generated, output_field            |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

 If casting to text data-type fixes the issue then I'd consider documenting
 this workaround instead of adding a PostgreSQL-specific function (where
 text casting would still be required). For example, adding the following
 sentence:

 ''"In order to make an `IMMUTABLE` expression  `MUTABLE` on PostgreSQL,
 you can wrap the expression with `Cast()`, e.g.
 `Cast(Concat(F("first_name"), Value(" "), F("last_name")),
 TextField())`."''

 in the warning about `IMMUTABLE` functions on PostgreSQL.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34955#comment:8>
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/0107018bb3a9b470-93e59c7c-61f1-4acb-a033-b31387c27613-000000%40eu-central-1.amazonses.com.

Reply via email to