Revision 2646
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
554 | 554 |
''' |
555 | 555 |
table = sql_gen.as_Table(table) |
556 | 556 |
if cols == []: cols = None # no cols (all defaults) = unknown col names |
557 |
if cols != None: cols = [sql_gen.as_Col(v).to_str(db) for v in cols] |
|
557 |
if cols != None: |
|
558 |
cols = [sql_gen.to_name_only_col(v, table).to_str(db) for v in cols] |
|
558 | 559 |
if select_query == None: select_query = 'DEFAULT VALUES' |
559 | 560 |
if returning != None: returning = sql_gen.as_Col(returning, table) |
560 | 561 |
|
Also available in: Unified diff
sql.py: mk_insert_select(): cols: Fixed bug where table name needed to be removed from columns with a table