mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 13:43:16 +08:00
Postgres UUID group issue (#37999)
* Add UUID to types that can be grouped by * Remove noop switch
This commit is contained in:
@ -132,7 +132,7 @@ table_schema IN (
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'group': {
|
case 'group': {
|
||||||
query += " AND data_type IN ('text','character','character varying')";
|
query += " AND data_type IN ('text','character','character varying','uuid')";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -661,12 +661,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addGroupAction() {
|
addGroupAction() {
|
||||||
switch (this.groupAdd.value) {
|
this.addGroup(this.groupAdd.type, this.groupAdd.value);
|
||||||
default: {
|
|
||||||
this.addGroup(this.groupAdd.type, this.groupAdd.value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.resetPlusButton(this.groupAdd);
|
this.resetPlusButton(this.groupAdd);
|
||||||
this.updateRawSqlAndRefresh();
|
this.updateRawSqlAndRefresh();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user