Ticket #9814: ss.diff

File ss.diff, 945 bytes (added by Karen Tracey, 9 years ago)
  • django/db/backends/sqlite3/base.py

     
    1010from django.db.backends.sqlite3.client import DatabaseClient
    1111from django.db.backends.sqlite3.creation import DatabaseCreation
    1212from django.db.backends.sqlite3.introspection import DatabaseIntrospection
     13from django.utils.safestring import SafeString                                                           
    1314
    1415try:
    1516    try:
     
    4950    # slow-down, this adapter is only registered for sqlite3 versions
    5051    # needing it.
    5152    Database.register_adapter(str, lambda s:s.decode('utf-8'))
     53    Database.register_adapter(SafeString, lambda s:s.decode('utf-8'))
    5254
    5355class DatabaseFeatures(BaseDatabaseFeatures):
    5456    # SQLite cannot handle us only partially reading from a cursor's result set
Back to Top