mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix: identifier for columns w/o table name / alias (#2449)
This commit is contained in:
parent
f14ca1dc00
commit
4dbe68f626
@ -259,10 +259,13 @@ type Column struct {
|
||||
}
|
||||
|
||||
func (c Column) identifier() string {
|
||||
if c.table.alias == "" {
|
||||
if c.table.alias != "" {
|
||||
return c.table.alias + "." + c.name
|
||||
}
|
||||
if c.table.name != "" {
|
||||
return c.table.name + "." + c.name
|
||||
}
|
||||
return c.table.alias + "." + c.name
|
||||
return c.name
|
||||
}
|
||||
|
||||
func (c Column) setTable(t table) Column {
|
||||
|
Loading…
Reference in New Issue
Block a user