Postgres UUID group issue (#37999)

* Add UUID to types that can be grouped by

* Remove noop switch
This commit is contained in:
Oscar Kilhed
2021-08-18 16:17:30 +02:00
committed by GitHub
parent 861fe60d01
commit 21f45d4927
2 changed files with 2 additions and 7 deletions

View File

@ -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;
} }
} }

View File

@ -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();
} }