Revision 2264
Added by Aaron Marcuse-Kubitza over 12 years ago
sql_gen.py | ||
---|---|---|
199 | 199 |
|
200 | 200 |
table = default_table |
201 | 201 |
if isinstance(col, tuple): table, col = col |
202 |
if table_is_esc: table = unescape_table(table) |
|
203 |
return Col(col, as_Table(table)) |
|
202 |
return Col(col, table2sql_gen(table, table_is_esc)) |
|
204 | 203 |
|
205 | 204 |
def value2sql_gen(value, default_table=None, table_is_esc=False, |
206 | 205 |
assume_col=False): |
... | ... | |
236 | 235 |
|
237 | 236 |
assert isinstance(value, tuple) |
238 | 237 |
table, joins = value |
239 |
if table_is_esc: table = unescape_table(table) |
|
240 |
return Join(table, joins) |
|
238 |
return Join(table2sql_gen(table, table_is_esc), joins) |
Also available in: Unified diff
sql_gen.py: Use new table2sql_gen() in col2sql_gen(), join2sql_gen()