[sqlalchemy] array column as primary key

2010-01-13 Thread avdd
I want to map a table with a postgresql array as a primary key. PostgreSQL supports it, and everything works until the session wants to use the list returned from the query as an instance key. How can I intercept the row returned to wrap it in a tuple? I can't figure out translate_row! from

Re: [sqlalchemy] array column as primary key

2010-01-13 Thread Michael Bayer
avdd wrote: I want to map a table with a postgresql array as a primary key. PostgreSQL supports it, and everything works until the session wants to use the list returned from the query as an instance key. How can I intercept the row returned to wrap it in a tuple? I can't figure out