Project

General

Profile

« Previous | Next » 

Revision 6901

sql.py: DbConn.col_info(): Fixed bug where need to use .to_str(self) instead of self.esc_value() because self.esc_value() expects a value, not a sql_gen.Literal instance

View differences:

lib/sql.py
484 484
LEFT JOIN pg_type ON pg_type.oid = atttypid
485 485
LEFT JOIN pg_attrdef ON adrelid = attrelid AND adnum = attnum
486 486
WHERE
487
attrelid = '''+self.esc_value(qual_table)+'''::regclass
488
AND attname = '''+self.esc_value(col_name_str)+'''
487
attrelid = '''+qual_table.to_str(self)+'''::regclass
488
AND attname = '''+col_name_str.to_str(self)+'''
489 489
'''
490 490
                    , cacheable=True, log_level=4))
491 491
            except StopIteration: raise sql_gen.NoUnderlyingTableException(col)

Also available in: Unified diff