PgPool.preparedBatch with no parameters
See original GitHub issueHi,
When calling PgPool.preparedBatch
with an SQL string with no parameters, I expected to be able to pass in an empty list of Tuples for the batch
parameter. However when I did this, no result was ever returned (the callback was never called). I got round this by instead passing in a list with one entry in it: Tuple.tuple()
Is this behaviour correct? Is the batch
parameter meant for passing in parameters to bind into the query? If so, is it right that you need to pass in a list with one “dummy” value in order for it to work?
Cheers!
Issue Analytics
- State:
- Created 5 years ago
- Comments:22 (10 by maintainers)
Top Results From Across the Web
PgPool (Reactive Postgres Client 0.11.2 API) - Julien Viet
Specified by: preparedBatch in interface PgClient; Parameters: sql - the prepared query SQL: batch - the batch of tuples: handler - the handler...
Read more >Reactive PostgreSQL Client - Eclipse Vert.x
Event driven. Lightweight. Built-in connection pooling. Prepared queries caching. Publish / subscribe using PostgreSQL NOTIFY/LISTEN. Batch and cursor.
Read more >Uses of Interface io.vertx.pgclient.PgPool (Vertx Javadocs 3.8.5.GA ...
Like pool(Vertx, PgConnectOptions, PoolOptions) with connectOptions build from connectionUri . <R> PgPool, PgPool. preparedBatch( ...
Read more >Restrictions - Pgpool-II
There is no workaround prior of version 3.6. From version 3.6, this limitation has been mitigated. If the argument to the function (that...
Read more >io.reactiverse.pgclient.PgPool.preparedQuery java ... - Tabnine
PgPool.preparedQuery (Showing top 15 results out of 315) ... Tuple arguments, Handler<AsyncResult<io.reactiverse.reactivex.pgclient.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. Problem is currently that it only supports 0.7 from pg driver (0.8 onwards have the changed JSON-API). Next release will be supporting the latest release though.
Am Mi., 22. Aug. 2018 um 09:03 Uhr schrieb Julien Viet < notifications@github.com>:
– Jens Klingsporn Beselerstraße 33 22607 Hamburg Tel: 0151/70102082
this should be fixed in master can you have a try ? cf https://github.com/reactiverse/reactive-pg-client/issues/200