Revision 10369
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/runscripts/table.run | ||
---|---|---|
49 | 49 |
|
50 | 50 |
map_table="\"~$table.map\"" # sort after other tables to avoid clutter |
51 | 51 |
|
52 |
reset_col_names() |
|
53 |
{ |
|
54 |
echo_func; set_make_vars |
|
55 |
if test "$is_view"; then return 0; fi # do not rename view columns |
|
56 |
psql <<EOF |
|
57 |
SELECT util.reset_col_names('"$table"', '$map_table') |
|
58 |
EOF |
|
59 |
} |
|
60 |
|
|
52 | 61 |
map_table() |
53 | 62 |
# note that collisions may prevent all renames from being made at once. |
54 | 63 |
# if this is the case, run map_table repeatedly until no more renames are made: |
Also available in: Unified diff
lib/runscripts/table.run: added reset_col_names(), which calls util.reset_col_names()