Browse Source

fix: search formula in pg.ts

pull/5444/head
Wing-Kam Wong 2 years ago
parent
commit
dc6adb06eb
  1. 8
      packages/nocodb-nest/src/db/functionMappings/pg.ts

8
packages/nocodb-nest/src/db/functionMappings/pg.ts

@ -16,10 +16,10 @@ const pg = {
return {
builder: args.knex.raw(
`POSITION(${args.knex.raw(
(await args.fn(args.pt.arguments[1])).builder.toQuery(),
)} in ${args.knex
.raw((await args.fn(args.pt.arguments[0])).builder)
.toQuery()})${args.colAlias}`,
(await args.fn(args.pt.arguments[1])).builder.toQuery()
)} in ${args.knex.raw(
(await args.fn(args.pt.arguments[0])).builder.toQuery()
)})${args.colAlias}`
),
};
},

Loading…
Cancel
Save