Postgres UUID group issue (#37999)

* Add UUID to types that can be grouped by

* Remove noop switch
pull/38023/head
Oscar Kilhed 4 years ago committed by GitHub
parent 861fe60d01
commit 21f45d4927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/plugins/datasource/postgres/meta_query.ts
  2. 7
      public/app/plugins/datasource/postgres/query_ctrl.ts

@ -132,7 +132,7 @@ table_schema IN (
break;
}
case 'group': {
query += " AND data_type IN ('text','character','character varying')";
query += " AND data_type IN ('text','character','character varying','uuid')";
break;
}
}

@ -661,12 +661,7 @@ export class PostgresQueryCtrl extends QueryCtrl {
}
addGroupAction() {
switch (this.groupAdd.value) {
default: {
this.addGroup(this.groupAdd.type, this.groupAdd.value);
}
}
this.addGroup(this.groupAdd.type, this.groupAdd.value);
this.resetPlusButton(this.groupAdd);
this.updateRawSqlAndRefresh();
}

Loading…
Cancel
Save