sequelize-typescript icon indicating copy to clipboard operation
sequelize-typescript copied to clipboard

Unable to provide search_path while using $set

Open ErbolLab opened this issue 6 years ago • 1 comments

Versions

  • sequelize: ^5.21.3
  • sequelize-typescript: ^1.1.0
  • typescript: ^3.3.3

I'm submitting a ...

[x ] bug report [ ] feature request

Actual behavior:

There is no way to provide a searchPath parameter while using $set method For example:

const post = new Post();
post.$set('author', value, {
  searchPath: 'tenantId'
})

it still sends: SET search_path to DEFAULT;

Expected behavior:

While it should send: SET search_path to tenantId;

ErbolLab avatar Apr 05 '20 16:04 ErbolLab

Hey @Erbolking sry for the late reply. Did you try to configure it like mentioned here: https://github.com/sequelize/sequelize/issues/4771#issuecomment-152181440

RobinBuschmann avatar May 26 '20 18:05 RobinBuschmann