Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

feat: add MySQL support for circular chart widgets with optimized aggregation queries

DarkPhoenix270444e5d538e8dc
diff --git a/packages/nocodb/src/db/aggregation.ts b/packages/nocodb/src/db/aggregation.ts
index 23e1a67570..f5d7fca864 100644
--- a/packages/nocodb/src/db/aggregation.ts
+++ b/packages/nocodb/src/db/aggregation.ts
@@ -164,7 +164,7 @@ export default async function applyAggregation({
aggType,
alias: alias,
});
- } else if (knex.client.config.client === 'mysql2') {
+ } else if (['mysql', 'mysql2'].includes(knex.client.config.client)) {
return genMysql2AggregatedQuery({
column,
baseModelSqlv2,