Commit f6e9fd42 authored by Vincent Pelletier's avatar Vincent Pelletier

Factorise u64 lookup.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2281 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 451163c4
......@@ -429,7 +429,8 @@ class MySQLDatabaseManager(DatabaseManager):
def storeTransaction(self, tid, object_list, transaction, temporary = True):
q = self.query
e = self.escape
tid = util.u64(tid)
u64 = util.u64
tid = u64(tid)
if temporary:
obj_table = 'tobj'
......@@ -441,7 +442,7 @@ class MySQLDatabaseManager(DatabaseManager):
self.begin()
try:
for oid, compression, checksum, data, value_serial in object_list:
oid = util.u64(oid)
oid = u64(oid)
if data is None:
compression = checksum = data = 'NULL'
else:
......
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