tortoise / tortoise-orm

Familiar asyncio ORM for python, built with relations in mind
https://tortoise.github.io
Apache License 2.0
4.7k stars 391 forks source link

Fix ambiguous column name when grouping with joins #1766

Closed henadzit closed 2 weeks ago

henadzit commented 2 weeks ago

Description

Adds aliases to GROUP BY statements which helps to avoid ambiguous name errors.

Motivation and Context

This should fix https://github.com/tortoise/tortoise-orm/issues/1386 and fix https://github.com/tortoise/tortoise-orm/issues/1175.

How Has This Been Tested?

Checklist:

coveralls commented 2 weeks ago

Pull Request Test Coverage Report for Build 11766871659

Details


Totals Coverage Status
Change from base Build 11764062074: 0.0%
Covered Lines: 6084
Relevant Lines: 6709

💛 - Coveralls