Browse Source

fix: remove unnecessary code which is no longer needed

pull/7268/head
Pranav C 11 months ago
parent
commit
011b9aa372
  1. 15
      packages/nocodb/src/db/functionMappings/pg.ts

15
packages/nocodb/src/db/functionMappings/pg.ts

@ -229,11 +229,6 @@ const pg = {
REGEX_MATCH: async ({ fn, knex, pt, colAlias }: MapFnArgs) => { REGEX_MATCH: async ({ fn, knex, pt, colAlias }: MapFnArgs) => {
const source = (await fn(pt.arguments[0])).builder; const source = (await fn(pt.arguments[0])).builder;
// replace shorthand character classes with their equivalent character sets
if (pt.arguments[1].type === 'Literal') {
pt.arguments[1].value = pt.arguments[1].value;
}
const pattern = (await fn(pt.arguments[1])).builder; const pattern = (await fn(pt.arguments[1])).builder;
return { return {
builder: knex.raw( builder: knex.raw(
@ -244,11 +239,6 @@ const pg = {
REGEX_EXTRACT: async ({ fn, knex, pt, colAlias }: MapFnArgs) => { REGEX_EXTRACT: async ({ fn, knex, pt, colAlias }: MapFnArgs) => {
const source = (await fn(pt.arguments[0])).builder; const source = (await fn(pt.arguments[0])).builder;
// replace shorthand character classes with their equivalent character sets
if (pt.arguments[1].type === 'Literal') {
pt.arguments[1].value = pt.arguments[1].value;
}
const pattern = (await fn(pt.arguments[1])).builder; const pattern = (await fn(pt.arguments[1])).builder;
return { return {
builder: knex.raw( builder: knex.raw(
@ -262,11 +252,6 @@ const pg = {
const source = (await fn(pt.arguments[0])).builder; const source = (await fn(pt.arguments[0])).builder;
const pattern = (await fn(pt.arguments[1])).builder; const pattern = (await fn(pt.arguments[1])).builder;
// replace shorthand character classes with their equivalent character sets
if (pt.arguments[1].type === 'Literal') {
pt.arguments[1].value = pt.arguments[1].value;
}
const replacement = (await fn(pt.arguments[2])).builder; const replacement = (await fn(pt.arguments[2])).builder;
return { return {
builder: knex.raw( builder: knex.raw(

Loading…
Cancel
Save