Revision 2130
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
372 | 372 |
|
373 | 373 |
if reduce(operator.and_, (v == join_using for v in joins.itervalues())): |
374 | 374 |
# all cols w/ USING |
375 |
query += ' USING('+(', '.join(joins.iterkeys()))
|
|
375 |
query += ' USING ('+(', '.join(joins.iterkeys()))+')'
|
|
376 | 376 |
else: query += ' ON '+(' AND '.join(map(join, joins.iteritems()))) |
377 | 377 |
|
378 | 378 |
left_table = table |
Also available in: Unified diff
sql.py: mk_select(): joins: Fixed bug where USING-based joins did not have closing ")"