[Neo-report] r2281 vincent - /trunk/neo/storage/database/mysqldb.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 2 18:29:50 CEST 2010
Author: vincent
Date: Thu Sep 2 18:29:49 2010
New Revision: 2281
Log:
Factorise u64 lookup.
Modified:
trunk/neo/storage/database/mysqldb.py
Modified: trunk/neo/storage/database/mysqldb.py
==============================================================================
--- trunk/neo/storage/database/mysqldb.py [iso-8859-1] (original)
+++ trunk/neo/storage/database/mysqldb.py [iso-8859-1] Thu Sep 2 18:29:49 2010
@@ -429,7 +429,8 @@ class MySQLDatabaseManager(DatabaseManag
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(DatabaseManag
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:
More information about the Neo-report
mailing list