Re: [sqlalchemy] after_update for ARRAY types

2017-03-14 Thread Asif Mahmud
Thanks very much for pointing to right direction. So all i had to do is using *sqlalchemy.ext.mutable *to make the *ARRAY *type mutable. I did a little example code works fine with *psycopg2* - import sqlalchemy as sa import sqlalchemy.event as event import sqlalchemy.orm as orm import

Re: [sqlalchemy] after_update for ARRAY types

2017-03-13 Thread mike bayer
ARRAY needs mutability to detect appends: http://docs.sqlalchemy.org/en/latest/orm/extensions/mutable.html?highlight=mutable#sqlalchemy.ext.mutable.MutableList On 03/12/2017 06:59 AM, Asif Mahmud wrote: Hi, I'm not sure if it's a bug or I'm missing something. The thing is, I tried to

[sqlalchemy] after_update for ARRAY types

2017-03-12 Thread Asif Mahmud
Hi, I'm not sure if it's a bug or I'm missing something. The thing is, I tried to register to *after_update ORM event to watch out for changes made to an existing row entry which has ARRAY *type column in it. But the event isn't firing when I append something to the *ARRAY *. Is this normal