I'm using python-flask, sqlalchemy. I had a problem about sqlalchemy results. I want specific column results from my table so I tried this
query = session.query(Table.column_one, Table.coulmn_two).first()
so I had results, but I can't update that results. I tried like this
query.column_one = value
or
setattr(query, column_one, value)
but the results is:
AttributeError: can't set attribute
so I found this post Can't set attribute on result objects in SQLAlchemy flask and in this post, there is no way to set attribute from that query. Is this real? Is there no way?