Changeset 22
- Timestamp:
- 03/06/07 18:05:51
- Files:
-
- trunk/geniusql/objects.py (modified) (1 diff)
- trunk/geniusql/providers/ado.py (modified) (1 diff)
- trunk/geniusql/select.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/geniusql/objects.py
r21 r22 13 13 """Bijective dict. Each key maps to only one value (and vice-versa).""" 14 14 15 def inverse(self, value):15 def key_for(self, value): 16 16 """For the given value, return its corresponding key.""" 17 17 for key, val in self.iteritems(): trunk/geniusql/providers/ado.py
r21 r22 1084 1084 isolation_levels = ["READ UNCOMMITTED",] 1085 1085 1086 def __init__(self, db): 1087 self.transactions = {} 1088 self.db = db 1086 def _set_factory(self): 1089 1087 # MS Access can't use a pool, because there doesn't seem 1090 1088 # to be a commit timeout. See http://support.microsoft.com/kb/200300 trunk/geniusql/select.py
r21 r22 557 557 if colkey in self.result: 558 558 # Get the key for the table. 559 colkey = '%s_%s' % (table.schema. inverse(table), colkey)559 colkey = '%s_%s' % (table.schema.key_for(table), colkey) 560 560 newcol.name = '%s_%s' % (table.name, newcol.name) 561 561 newcol.qname = table.schema.db.quote(newcol.name) … … 653 653 """ 654 654 if path is None: 655 schema = B.table.schema 656 for tkey in schema: 657 if schema[tkey] is B.table: 658 path = tkey 659 break 655 path = B.table.schema.key_for(B.table) 660 656 ref = A.table.references.get(path, None) 661 657 if ref:
