[Sqlalchemy-tickets] [sqlalchemy] #1266: Provide a way to access the real server_default in sqlite
Brought to you by:
zzzeek
From: sqlalchemy <mi...@zz...> - 2008-12-31 17:40:12
|
#1266: Provide a way to access the real server_default in sqlite for reflected tables -------------------------+-------------------------------------------------- Reporter: guest | Owner: zzzeek Type: enhancement | Status: new Priority: low | Milestone: Component: sqlite | Severity: no triage selected yet Keywords: | Status_field: awaiting triage -------------------------+-------------------------------------------------- Hi, I am trying to access the server_default in a column of a reflected table. The sqlite backend returns '?' which doesn't really help me. Could you add the real default as attribute to the DefaultClause? Example: http://paste.pocoo.org/show/97510 print ref_table.columns['data'].server_default.real_arg could return the real default as returned by sqlite (row[4]) -- Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1266> sqlalchemy <http://www.sqlalchemy.org/> The Database Toolkit for Python |