mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-16 05:31:38 +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 {
|
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.name + "." + c.name
|
||||||
}
|
}
|
||||||
return c.table.alias + "." + c.name
|
return c.name
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c Column) setTable(t table) Column {
|
func (c Column) setTable(t table) Column {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user