Revision 13004
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sql.py | ||
---|---|---|
1111 | 1111 |
''' |
1112 | 1112 |
items = mk_flatten_mapping(db, into, cols, as_items=True, **kw_args) |
1113 | 1113 |
cols = [sql_gen.NamedCol(new.name, old) for old, new in items] |
1114 |
# don't warn if can't create pkey, because this just indicates that a |
|
1115 |
# set-returning function was used |
|
1114 | 1116 |
run_query_into(db, mk_select(db, joins, cols, limit=limit, start=start), |
1115 |
into=into, add_pkey_=True) |
|
1117 |
into=into, add_pkey_=True, add_pkey_warn=False)
|
|
1116 | 1118 |
# don't cache because the temp table will usually be truncated after use |
1117 | 1119 |
return dict(items) |
1118 | 1120 |
|
Also available in: Unified diff
fix: lib/sql.py: flatten(): don't warn if can't create pkey, because this just indicates that a set-returning function was used