Re: [Sqlalchemy-tickets] [sqlalchemy] #1631: pg8000 not working with enums.
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-10-03 21:15:00
|
#1631: pg8000 not working with enums.
-----------------------------------+------------------------------------
Reporter: guest | Owner: zzzeek
Type: defect | Status: closed
Priority: medium | Milestone: 0.6.xx
Component: postgres | Severity: no triage selected yet
Resolution: worksforme | Keywords:
Progress State: completed/closed |
-----------------------------------+------------------------------------
Comment (by tlocke):
I've actually committed a fix to PG8000 that doesn't require any casting
in the SQL
https://github.com/mfenniak/pg8000/commit/41362eed49a271da05a079b953f7b513ad0483e2.
So no change needed to SQLAlchemy!
Btw, to answer your question above about the 'e', I was following the
@percious example which confusingly gave the same name 'e' to the column
and the enum type:
{{{
Column(u'e', Enum('one', 'two', name=u'e'))
}}}
Anyway, that's by the by.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1631#comment:7>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|