amphp / postgres

Async Postgres client for PHP based on Amp.
MIT License
96 stars 20 forks source link

another command is already in progress #32

Closed mmasiukevich closed 4 years ago

mmasiukevich commented 4 years ago

Good evening, question about the PQ driver.

there is a code: https://paste.ofcode.org/JT4euUCF55dAE282nXwcLB (the id field is the primary key.) if I run it for the first time then everything is fine.

On the second run, the first query will get an error related to a unique record. And to hell with it, but the second request will also fail with error "another command is already in progress" And the error occurs with any fuckups related to the execution of the queries.

installed extensions: sockets, event, raphf, pq