let extended queries handle empty responses
Some queries return empty data sets. In case extended query mechanism was used - whole process would be hung in a 'receive' with no results. This patch lets p1_pgsql handle such queries and return back to 'ready for query' state.
Hi @oxpa, many thanks for your contribution!
In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.
You did it @oxpa!
Thank you for signing the ProcessOne Contribution License Agreement.
We will have a look at your contribution!
This library is used by ejabberd, and its tests didn't report any problem.
I've submitted a pull request to ejabberd to use this patch. But by the time I made it there was an alternative implementation using E'' syntax. I'm not really sure which approach is better because this uses anonymous prepared statement under the hood and I know to little about E'' escaping in postgres to make educated comparison.