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 { return {
builder: args.knex.raw( builder: args.knex.raw(
`POSITION(${args.knex.raw( `POSITION(${args.knex.raw(
(await args.fn(args.pt.arguments[1])).builder.toQuery(), (await args.fn(args.pt.arguments[1])).builder.toQuery()
)} in ${args.knex )} in ${args.knex.raw(
.raw((await args.fn(args.pt.arguments[0])).builder) (await args.fn(args.pt.arguments[0])).builder.toQuery()
.toQuery()})${args.colAlias}`, )})${args.colAlias}`
), ),
}; };
}, },

Loading…
Cancel
Save