Project

General

Profile

« Previous | Next » 

Revision 2185

sql.py: mk_select(): Fixed bug in joins where right_col had the table name prepended before it was copied for use with a different table name in join_using and join_not_equal

View differences:

lib/sql.py
430 430
        def join(entry):
431 431
            '''Parses non-USING joins'''
432 432
            right_col, left_col = entry
433
            right_col = table+'.'+esc_name_(right_col)
434
            sql_ = right_col+' '
435 433
            
436 434
            negative = False
437 435
            
......
444 442
                negative = True
445 443
            
446 444
            # Create SQL
445
            right_col = table+'.'+esc_name_(right_col)
446
            sql_ = right_col+' '
447 447
            if isinstance(left_col, tuple) and len(left_col) == 1:
448 448
                # col is literal value
449 449
                value, = left_col

Also available in: Unified diff