Revision 10186
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sql_gen.py | ||
---|---|---|
258 | 258 |
def is_underlying_table(table): |
259 | 259 |
return isinstance(table, Table) and table.to_Table() is table |
260 | 260 |
|
261 |
def table2regclass_text(db, table): |
|
262 |
assert isinstance(table, Table) |
|
263 |
return db.esc_value(table.to_str(db)) |
|
264 |
|
|
261 | 265 |
class NoUnderlyingTableException(Exception): |
262 | 266 |
def __init__(self, ref): |
263 | 267 |
Exception.__init__(self, 'for: '+strings.as_tt(strings.urepr(ref))) |
Also available in: Unified diff
lib/sql_gen.py: added table2regclass_text()