[#2349] fixed View collection schema incorrectly resolving multiple aliased fields originating from the same field source

This commit is contained in:
Gani Georgiev
2023-04-24 15:43:23 +03:00
parent cae3315e46
commit e61d48fe7b
3 changed files with 24 additions and 5 deletions

View File

@@ -311,6 +311,7 @@ func (dao *Dao) parseQueryToFields(selectQuery string) (map[string]*queryField,
if field != nil {
clone := *field
clone.Id = "" // unset to prevent duplications if the same field is aliased multiple times
clone.Name = col.alias
result[col.alias] = &queryField{
field: &clone,