Commit 9a5f2f10 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add a very useful information to show how to fix this problem.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38441 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a606ba53
...@@ -98,8 +98,9 @@ class SQLNonContinuousIncreasingIdGenerator(IdGenerator): ...@@ -98,8 +98,9 @@ class SQLNonContinuousIncreasingIdGenerator(IdGenerator):
if last_max_id_dict.get(id_group, None) is not None and \ if last_max_id_dict.get(id_group, None) is not None and \
last_max_id_dict[id_group].value > new_id: last_max_id_dict[id_group].value > new_id:
raise ValueError, 'The last_id %s stored in zodb dictionary is ' \ raise ValueError, 'The last_id %s stored in zodb dictionary is ' \
'higher than the new id %s generated for id_group %s' % \ 'higher than the new id %s generated for id_group %s. ' \
(last_max_id_dict[id_group].value, new_id, id_group) 'invoke %s/rebuildSqlTable to fix this problem.' % \
(last_max_id_dict[id_group].value, new_id, id_group, self.absolute_url())
# Check the store interval to store the data # Check the store interval to store the data
store_interval = self.getStoreInterval() store_interval = self.getStoreInterval()
if not store_interval: if not store_interval:
......
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