amphp / postgres

Async Postgres client for PHP based on Amp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

another command is already in progress

mmasiukevich opened this issue · comments

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