Revision 2162
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
677 | 677 |
@return (table, col) Where the pkeys (from INSERT RETURNING) are made |
678 | 678 |
available |
679 | 679 |
''' |
680 |
temp_suffix = '_'.join(map(clean_name, |
|
681 |
[out_table] + list(iters.flatten_n(mapping.items(), depth=3)))) |
|
680 |
temp_suffix = clean_name(out_table) |
|
682 | 681 |
# suffix, not prefix, so main name won't be removed if name is truncated |
683 | 682 |
pkeys_ref = ['pkeys_'+temp_suffix] |
684 | 683 |
|
Also available in: Unified diff
put_table(): Use short name for temp_suffix now that version # will be added if needed