mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
dialect/sql: correct alias names for multiple join tables
This commit is contained in:
committed by
Ariel Mashraki
parent
124521d10f
commit
edf473e043
@@ -1877,7 +1877,7 @@ func (s *Selector) join(kind string, t TableView) *Selector {
|
||||
switch view := t.(type) {
|
||||
case *SelectTable:
|
||||
if view.as == "" {
|
||||
view.as = "t0"
|
||||
view.as = "t" + strconv.Itoa(len(s.joins))
|
||||
}
|
||||
case *Selector:
|
||||
if view.as == "" {
|
||||
|
||||
Reference in New Issue
Block a user