Revision 2578
Added by Aaron Marcuse-Kubitza about 12 years ago
sql.py | ||
---|---|---|
511 | 511 |
if conds != []: |
512 | 512 |
if len(conds) == 1: whitespace = ' ' |
513 | 513 |
else: whitespace = '\n' |
514 |
query += '\n'+sql_gen.combine_conds(['('+sql_gen.ColValueCond(l, r)
|
|
515 |
.to_str(db)+')' for l, r in conds], 'WHERE')
|
|
514 |
query += '\n'+sql_gen.combine_conds([sql_gen.ColValueCond(l, r) |
|
515 |
.to_str(db) for l, r in conds], 'WHERE') |
|
516 | 516 |
missing = False |
517 | 517 |
if order_by != None: |
518 | 518 |
query += '\nORDER BY '+sql_gen.as_Col(order_by, table0).to_str(db) |
Also available in: Unified diff
sql_gen.py CompareCond.to_str(), callers of combine_conds(): Removed unnecessary grouping () to make SQL clearer