[sqlalchemy] 0.8.0b Postgres Array Issue

2013-03-07 Thread Jason
Hello, I'm using a column defined as: discounts = Column(ARRAY(Discount)) Where Discount is a UserDefinedType that just passes the value through to/from Psycopg2 (which uses a namedtuple for the discounts value): class Discount(UserDefinedType): SQLAlchemy type that passes through values

Re: [sqlalchemy] 0.8.0b Postgres Array Issue

2013-03-07 Thread Michael Bayer
Can you pass along more specifics here? I don't see where this named tuple is being created. It's true that the ARRAY type by default doesn't know how deep it should be unwrapping arrays, if you pass the dimensions argument then it will be fixed. But it's not clear why you didn't see this

Re: [sqlalchemy] 0.8.0b Postgres Array Issue

2013-03-07 Thread Jason
On Thursday, March 7, 2013 1:40:46 PM UTC-5, Michael Bayer wrote: Can you pass along more specifics here? I don't see where this named tuple is being created. It's true that the ARRAY type by default doesn't know how deep it should be unwrapping arrays, if you pass the dimensions

Re: [sqlalchemy] 0.8.0b Postgres Array Issue

2013-03-07 Thread Michael Bayer
On Mar 7, 2013, at 2:12 PM, Jason ja...@deadtreepages.com wrote: On Thursday, March 7, 2013 1:40:46 PM UTC-5, Michael Bayer wrote: Can you pass along more specifics here? I don't see where this named tuple is being created. It's true that the ARRAY type by default doesn't know how