allow more customization of db._adapter.types

This commit is contained in:
mdipierro
2012-12-05 11:57:18 -06:00
parent 32823d8288
commit 73f2da5087
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.0 (2012-12-05 11:34:39) rc1
Version 2.3.0 (2012-12-05 11:56:35) rc1
+3 -2
View File
@@ -6851,9 +6851,10 @@ class DAL(object):
adapter_args=adapter_args or {},
do_connect=do_connect)
self._adapter = ADAPTERS[self._dbname](**kwargs)
types = ADAPTERS[self._dbname].types
# copy so multiple DAL() possible
self._adapter.types = copy.copy(types)
if bigint_id:
types = ADAPTERS[self._dbname].types
self._adapter.types = copy.copy(types) # copy so multiple DAL() possible
if 'big-id' in types and 'reference' in types:
self._adapter.types['id'] = types['big-id']
self._adapter.types['reference'] = types['big-reference']