Rasmus Porsager
Rasmus Porsager
Hey @pygy - Anything looking better on this front a little year later? Let me know if there's a quick fix I could do, and I'll gladly add it.
Wow, sorry for not responding here. There should be no issue when you're doing inserts. The issue above was with the specific use of `sql.array` and the very first query...
Sorry for the silence @megous , haven't had time to engage much.. Sounds great about the patch, I've applied it and added some tests, it looks good! I'll push and...
nesting sql.unsafe works now, so closing this :)
You need to single quote the customer id 😉
@jgnieuwhof I don't think what you're experiencing has anything to do with the dynamic query helpers. I think you might have queries running on different connections in parallel, so that...
Related to this issue, it was fixed in https://github.com/porsager/postgres/commit/58aac2052a43f062d1d6f7c1bbe10c37d343de29
Perhaps the error message is a red herring, and it is because of reaching a connection limit, and Postgres.js is missing integration for that specific case. I'll see if I...
Hmm.. no, that correctly errors with `PostgresError: sorry, too many clients already`
Sorry - I haven't had time to look at issues, but going through them now and testing this, I am unable replicate, also with the code above and same postgres...