Hi all,
can anybody explain why this:
session.query(Answer).all() - [Answer('...'), ... ]
works, but this:
session.query(func.sum(Answer.close_answer1)).all()
throws the following error?
*** AttributeError: 'MySQLCompiler' object has no attribute
'mapped_table'
The class 'Answer' is mapped
Simone Orsi wrote:
Hi all,
can anybody explain why this:
session.query(Answer).all() - [Answer('...'), ... ]
works, but this:
session.query(func.sum(Answer.close_answer1)).all()
throws the following error?
*** AttributeError: 'MySQLCompiler' object has no attribute
'mapped_table'
Hi Michael,
On 02/05/2010 04:16 PM, Michael Bayer wrote:
Simone Orsi wrote:
Hi all,
can anybody explain why this:
session.query(Answer).all() - [Answer('...'), ... ]
works, but this:
session.query(func.sum(Answer.close_answer1)).all()
throws the following error?
***