diff --git a/packages/server/src/integrations/base/sql.ts b/packages/server/src/integrations/base/sql.ts index 6b054b2872..87243c073e 100644 --- a/packages/server/src/integrations/base/sql.ts +++ b/packages/server/src/integrations/base/sql.ts @@ -94,7 +94,7 @@ function generateSelectStatement(json: QueryJson, knex: Knex): any[] { const schema = meta?.table?.schema return resource.fields.map(field => { const shortFieldName = field.match(/(?<=\.).*$/g)?.[0] - if (shortFieldName) { + if (shortFieldName && knex.client.config.client === "pg") { const externalType = schema?.[shortFieldName].externalType if (externalType?.includes("money")) { const fieldName = field.split(/\./g)