Repository navigation
|
Hello there, I have used prisma since a month ago. Today, I executed update function to a table in salesforce schema. It seems the reason error happen is using Heroku Connect. I have doubts about it. I've already configured "public" and "salesforce" about "search_path" with DB client. I would like to ask a question for there. Additional InformationI found a workaround. But it's JUST workaround. I wish that I can set up search_path at the right method. this.salesforce.$queryRaw('SET search_path TO salesforce, public')
.then((result) => {
logger.info(result)
})
.catch((error) => {
Promise.reject(error)
}) |
Replies: 2 comments 8 replies
|
@takuma-katanosaka-flect 👋 One way to do this would be to set the |
|
Note: Your workaround only works if accidentally the same connection is used for the raw query and the following query. This might not always be the case, and if you get a connection where you did not run the query yet the Prisma query will again fail. |
@takuma-katanosaka-flect 👋
One way to do this would be to set the
search_pathin the migrations.sqlfile itself so that it persists.