Commit 79753ea8 authored by Sebastien Robin's avatar Sebastien Robin

we must use replace instead of insert in order to solve duplicate key problems

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14754 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f3691d32
......@@ -63,7 +63,7 @@ class SQLCache(BaseCache):
UNIQUE(cache_id, scope))
'''
insert_key_sql = '''INSERT INTO %s (cache_id, value, scope, stored_at, cache_duration, calculation_time)
insert_key_sql = '''REPLACE INTO %s (cache_id, value, scope, stored_at, cache_duration, calculation_time)
VALUES("%s", "%s", "%s", %s, %s, %s)
'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment