Revision 2494
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/db_xml.py | ||
---|---|---|
131 | 131 |
def into_table_name(out_table, row): |
132 | 132 |
into = None |
133 | 133 |
if xml_func.is_func_name(out_table): |
134 |
into = out_table+'_' |
|
135 |
value_col = row['value'] |
|
136 |
if isinstance(value_col, sql_gen.NamedCol): into += 'literal' |
|
137 |
else: into += value_col.name |
|
134 |
col_name = sql.clean_name(str(sql_gen.remove_col_rename(row['value']))) |
|
135 |
into = out_table+'('+col_name+')' |
|
138 | 136 |
return into |
139 | 137 |
|
140 | 138 |
input_col_prefix = '$' |
Also available in: Unified diff
db_xml.py: into_table_name(): Format relational functions' into table names as a function call on the value column, using special chars for readability