Revision 3158
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import copy |
4 | 4 |
import operator |
5 |
from ordereddict import OrderedDict |
|
5 | 6 |
import re |
6 | 7 |
import UserDict |
7 | 8 |
import warnings |
... | ... | |
340 | 341 |
'''A dict that automatically makes inserted entries Col objects''' |
341 | 342 |
|
342 | 343 |
def __init__(self, db, keys_table, dict_={}): |
343 |
dicts.DictProxy.__init__(self, {})
|
|
344 |
dicts.DictProxy.__init__(self, OrderedDict())
|
|
344 | 345 |
|
345 | 346 |
keys_table = as_Table(keys_table) |
346 | 347 |
|
Also available in: Unified diff
sql_gen.py: ColDict: Use OrderedDict so that order of keys in input dict (if ordered) will be preserved. This should ensure that tempt table unique indexes have their columns in the same order as the output table, so that a merge join can be used.