Revision 3638
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
473 | 473 |
schema = col.table.schema |
474 | 474 |
if schema != None: conds.append(('table_schema', schema)) |
475 | 475 |
|
476 |
type_, default, nullable = row(select(self, table, cols, conds, |
|
477 |
order_by='table_schema', limit=1, cacheable=cacheable, log_level=4)) |
|
478 |
# TODO: order_by search_path schema order |
|
476 |
cur = select(self, table, cols, conds, order_by='table_schema', limit=1, |
|
477 |
cacheable=cacheable, log_level=4) # TODO: order by search_path order |
|
478 |
try: type_, default, nullable = row(cur) |
|
479 |
except StopIteration: raise sql_gen.NoUnderlyingTableException |
|
479 | 480 |
default = sql_gen.as_Code(default, self) |
480 | 481 |
|
481 | 482 |
return sql_gen.TypedCol(col.name, type_, default, nullable) |
Also available in: Unified diff
sql.py: DbConn.col_info(): If column does not exist, raise sql_gen.NoUnderlyingTableException