Ticket #9814: ss.diff
File ss.diff, 945 bytes (added by , 16 years ago) |
---|
-
django/db/backends/sqlite3/base.py
10 10 from django.db.backends.sqlite3.client import DatabaseClient 11 11 from django.db.backends.sqlite3.creation import DatabaseCreation 12 12 from django.db.backends.sqlite3.introspection import DatabaseIntrospection 13 from django.utils.safestring import SafeString 13 14 14 15 try: 15 16 try: … … 49 50 # slow-down, this adapter is only registered for sqlite3 versions 50 51 # needing it. 51 52 Database.register_adapter(str, lambda s:s.decode('utf-8')) 53 Database.register_adapter(SafeString, lambda s:s.decode('utf-8')) 52 54 53 55 class DatabaseFeatures(BaseDatabaseFeatures): 54 56 # SQLite cannot handle us only partially reading from a cursor's result set