Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions openerp/addons/base/ir/ir_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ def __init__(self, cr, uid, parent, context):

# Note that Postgres will NOT inherit the constraints or indexes
# of ir_translation, so this copy will be much faster.
# Thanks to the explicit default value for 'id' overriding,
# it will not bump the sequence either
# (id is actually unsused in the temp table).
# This will be faster, and avoid the possibility to hit the limit
# at 2**31 in months (fatal startup error)
cr.execute('''CREATE TEMP TABLE %s(
id INT DEFAULT 0,
imd_model VARCHAR(64),
imd_name VARCHAR(128)
) INHERITS (%s) ''' % (self._table_name, self._parent_table))
Expand Down