Revision 2660
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
336 | 336 |
schema = col.table.schema |
337 | 337 |
if schema != None: conds.append(('table_schema', schema)) |
338 | 338 |
|
339 |
return value(select(self, table, ['column_default'], conds,
|
|
340 |
order_by='table_schema', limit=1, log_level=3))
|
|
339 |
return sql_gen.as_Code(value(select(self, table, ['column_default'],
|
|
340 |
conds, order_by='table_schema', limit=1, log_level=3)))
|
|
341 | 341 |
# TODO: order_by search_path schema order |
342 | 342 |
|
343 | 343 |
connect = DbConn |
Also available in: Unified diff
sql.py: DbConn.col_default(): Fixed bug where returned string needed to be wrapped in sql_gen.as_Code() because it's sometimes a SQL expression and sometimes NULL