call to build_parsemap() on __init__ instead of at every select(), thanks Niphlod
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+1
-1
@@ -2058,7 +2058,6 @@ class BaseAdapter(ConnectionPool):
|
|||||||
|
|
||||||
def parse(self, rows, fields, colnames, blob_decode=True,
|
def parse(self, rows, fields, colnames, blob_decode=True,
|
||||||
cacheable = False):
|
cacheable = False):
|
||||||
self.build_parsemap()
|
|
||||||
db = self.db
|
db = self.db
|
||||||
virtualtables = []
|
virtualtables = []
|
||||||
new_rows = []
|
new_rows = []
|
||||||
@@ -7410,6 +7409,7 @@ class DAL(object):
|
|||||||
types = ADAPTERS[self._dbname].types
|
types = ADAPTERS[self._dbname].types
|
||||||
# copy so multiple DAL() possible
|
# copy so multiple DAL() possible
|
||||||
self._adapter.types = copy.copy(types)
|
self._adapter.types = copy.copy(types)
|
||||||
|
self._adapter.build_parsemap()
|
||||||
if bigint_id:
|
if bigint_id:
|
||||||
if 'big-id' in types and 'reference' in types:
|
if 'big-id' in types and 'reference' in types:
|
||||||
self._adapter.types['id'] = types['big-id']
|
self._adapter.types['id'] = types['big-id']
|
||||||
|
|||||||
Reference in New Issue
Block a user