mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #10488: fixed DB cache backend test failures in Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
3
django/core/cache/backends/db.py
vendored
3
django/core/cache/backends/db.py
vendored
@@ -35,7 +35,8 @@ class CacheClass(BaseCache):
|
||||
cursor.execute("DELETE FROM %s WHERE cache_key = %%s" % self._table, [key])
|
||||
transaction.commit_unless_managed()
|
||||
return default
|
||||
return pickle.loads(base64.decodestring(row[1]))
|
||||
value = connection.ops.process_clob(row[1])
|
||||
return pickle.loads(base64.decodestring(value))
|
||||
|
||||
def set(self, key, value, timeout=None):
|
||||
self._base_set('set', key, value, timeout)
|
||||
|
||||
Reference in New Issue
Block a user