Revision 3513
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
306 | 306 |
if not isinstance(col, Col): col = NamedCol(name, col) |
307 | 307 |
|
308 | 308 |
if isinstance(col, Code): return col |
309 |
else: return Col(col, table) |
|
309 |
elif util.is_str(col): return Col(col, table) |
|
310 |
else: return Literal(col) |
|
310 | 311 |
|
311 | 312 |
def with_table(col, table): |
312 | 313 |
if isinstance(col, NamedCol): pass # doesn't take a table |
Also available in: Unified diff
sql_gen.py: as_Col(): Support non-Code, non-string inputs by making them Literals