call to build_parsemap() on __init__ instead of at every select(), thanks Niphlod

This commit is contained in:
mdipierro
2013-08-01 02:00:08 -05:00
parent d3c723666a
commit a2566ef7ab
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.07.31.11.44.33
Version 2.6.0-development+timestamp.2013.08.01.01.59.18

View File

@@ -2058,7 +2058,6 @@ class BaseAdapter(ConnectionPool):
def parse(self, rows, fields, colnames, blob_decode=True,
cacheable = False):
self.build_parsemap()
db = self.db
virtualtables = []
new_rows = []
@@ -7410,6 +7409,7 @@ class DAL(object):
types = ADAPTERS[self._dbname].types
# copy so multiple DAL() possible
self._adapter.types = copy.copy(types)
self._adapter.build_parsemap()
if bigint_id:
if 'big-id' in types and 'reference' in types:
self._adapter.types['id'] = types['big-id']