Changes between Initial Version and Version 3 of Ticket #25638
- Timestamp:
- Oct 30, 2015, 1:38:53 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25638 – Description
initial v3 1 1 Suppose we want to concat a string to the end of a Charfield. 2 2 If we use: 3 Model.objects.update(field=Concat('field', Value("end"))) 4 3 {{{ 4 Model.objects.update(field=Concat('field', Value("end")))` 5 }}} 5 6 it will commit successfully, but the field will inlcude error-encoding text in SQLite. If we select the field from db, db will say "OperationalError: Could not decode to UTF-8 column 'name' with text". 6 7 7 8 Instead, 9 {{{ 8 10 Model.objects.update(field=Concat('field', Value("end"), None)) 11 }}} 9 12 it will be OK.