Closed EvgeniyRRU closed 2 years ago
We are running the CI tests across the latest versions of Postgres 13, 12, 11, 10 and 9.6: https://github.com/voxpelli/node-connect-pg-simple/blob/25b1fbcb3afd8185f4985514120ee1363e46cd0a/.github/workflows/nodejs.yml#L29
And they are passing, which is an indication of one of two things:
If you could reproduce it within the test suite, then that would be great 🙏
The tests here are testing this exact method:
@voxpelli nevermind. It seems, we have a buggy custom tune of our database. I'm not sure whether it custom implicit type casting or overload to_timestamp
function. So, it think, you can close this issue. Sorry to bother you.
No worries @EvgeniyRRU 🙏
I'm try to use
connect-pg-simple
withkeystone5
-application, it based onexpress 4.16
. It standard use case, based on documentation:When it was in local development stage (I used docker-compose and posgresql-13 image), it worked fine. But when I tried to deploy my application (to 11.4 postgresql), my code has broken.
Error looked something like this:
It seems, postgresql changed
to_timestamp
casts (maybe even syntax?). Postgres 13.6:Postgres 11.4:
I suppose
pg
parametrized query wraps timestamp value into single quotes.