Psycopg2 can't adapt type 'BinaryExpression' when I use CASE statement in my SQLAlchemy query

前端 未结 0 416
抹茶落季
抹茶落季 2020-11-22 16:48

I have the next query:

sub_qry = self.session.query(
            TableA.currency,
            func.sum(func.case([(TableB.status_id == EStatus.REPORTED.value,         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题