mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
console: fix use of aliased columns in dimensions
By default, `SELECT *` does not select ALIAS columns. Add the appropriate settings to modify this. Fix #541
This commit is contained in:
@@ -55,7 +55,7 @@ func (input graphCommonHandlerInput) sourceSelect() string {
|
||||
}
|
||||
}
|
||||
if len(truncated) == 0 {
|
||||
return "SELECT * FROM {{ .Table }}"
|
||||
return "SELECT * FROM {{ .Table }} SETTINGS asterisk_include_alias_columns = 1"
|
||||
}
|
||||
return fmt.Sprintf("SELECT * REPLACE (%s) FROM {{ .Table }}", strings.Join(truncated, ", "))
|
||||
return fmt.Sprintf("SELECT * REPLACE (%s) FROM {{ .Table }} SETTINGS asterisk_include_alias_columns = 1", strings.Join(truncated, ", "))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user