#26468: Bug in models.functions.ConcatPair for sqlite
-------------------------------+--------------------------------------
Reporter: jerch | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.8
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 jerch):
I tried to concat to db fields into one output column like this:
{{{
expr = Concat(models.F('field1'), models.Value('"-"'), models.F('field2'),
outputfield=models.CharField())
}}}
Expected output: 'value_from_field_1-value_from_field_2'
Instead I just got an invalid syntax sql error.
--
Ticket URL: <https://code.djangoproject.com/ticket/26468#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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.eed17c92c27c3c50d39b3ee6293a76c2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.