Browse Source

fix(nocodb): fix invalid formula caused by STRING_AGG in postgres

pull/4973/head
Wing-Kam Wong 2 years ago
parent
commit
dc5d5562d4
  1. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/CustomKnex.ts

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/CustomKnex.ts

@ -548,7 +548,7 @@ knex.QueryBuilder.extend(
knex.QueryBuilder.extend('concat', function (cn: any) {
switch (this?.client?.config?.client) {
case 'pg':
this.select(this.client.raw(`STRING_AGG(?? , ',')`, [cn]));
this.select(this.client.raw(`STRING_AGG(??::character varying , ',')`, [cn]));
break;
case 'mysql':
case 'mysql2':

Loading…
Cancel
Save