Reputation: 3
We are using group_concat in one of our query which returns string greater than default length of group_concat(1024). I need to set the max value for group_concat_max_len at the global level, but I am not able to find a way to achieve that in Flask_Sqlalchemy.
Request.query
.with_entities(func.group_concat(func.CONCAT_WS(';', Sample.xyz,Analysis.zy, Analysis.pqr).distinct()))
.outerjoin(Sample)
.outerjoin(Analysis)
.group_by(Request.id).all()
Let me know if anyone can help me with this.
Upvotes: 0
Views: 565