Browse Source

fix: mysql - REGEX_REPLACE - make it case-sensitive by default

pull/7268/head
Pranav C 9 months ago
parent
commit
ce2dda31b5
  1. 2
      packages/nocodb/src/db/functionMappings/mysql.ts

2
packages/nocodb/src/db/functionMappings/mysql.ts

@ -136,7 +136,7 @@ const mysql2 = {
const replacement = (await fn(pt.arguments[2])).builder;
return {
builder: knex.raw(
`REGEXP_REPLACE(${source}, ${pattern}, ${replacement}) ${colAlias}`,
`REGEXP_REPLACE(${source}, ${pattern}, ${replacement}, 1, 0, 'c') ${colAlias}`,
),
};
},

Loading…
Cancel
Save