Revision 6901
Added by Aaron Marcuse-Kubitza about 12 years ago
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
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