diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-10-18 19:00:05 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-10-18 19:00:29 -0400 |
| commit | 5ae388b0773cb95f5e4e9487433a0e81e5bf8cd3 (patch) | |
| tree | f4131926ed1331f246787d93d4522dc3449b86be /lib/sqlalchemy/dialects/postgresql | |
| parent | cf1ac72bca8b0bc28e09cdb4cdf052bcf82e5076 (diff) | |
| download | sqlalchemy-5ae388b0773cb95f5e4e9487433a0e81e5bf8cd3.tar.gz | |
- Removed a 128-character truncation from the reflection of the
server default for a column; this code was original from
PG system views which truncated the string for readability.
[ticket:2844]
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql')
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index b879fb742..a20cca702 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1679,8 +1679,7 @@ class PGDialect(default.DefaultDialect): SQL_COLS = """ SELECT a.attname, pg_catalog.format_type(a.atttypid, a.atttypmod), - (SELECT substring(pg_catalog.pg_get_expr(d.adbin, d.adrelid) - for 128) + (SELECT pg_catalog.pg_get_expr(d.adbin, d.adrelid) FROM pg_catalog.pg_attrdef d WHERE d.adrelid = a.attrelid AND d.adnum = a.attnum AND a.atthasdef) |
