I'm using a SQLite3 backend on Python 2.6 and saving a unicode string
with the null character (u'\x00') results in everything after that
character being truncated.

For example:

m = MyModel(name=u'abc\x00def')
m.save()
MyModel.objects.get(pk=m.pk).name # => u'abc'

I've tried using both the sqlite3 library included with Python and the
pysqlite2, but I still get this error. I'm not sure whether this error
is specific to SQLite3, the python-interface, or Django. This all
seems to work fine in MySQL however.

-- Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to