question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PgPool.preparedBatch with no parameters

See original GitHub issue

Hi,

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:closed
  • Created 5 years ago
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jklingsporncommented, Aug 22, 2018

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>:

oh nice, I think we should link from this project once you have documentation

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/reactiverse/reactive-pg-client/issues/152#issuecomment-414932736, or mute the thread https://github.com/notifications/unsubscribe-auth/AGC83i3lhDRu7w88zlYkQlxDZI7WBZR6ks5uTQI8gaJpZM4WGAek .

– Jens Klingsporn Beselerstraße 33 22607 Hamburg Tel: 0151/70102082

0reactions
vietjcommented, Nov 3, 2018

this should be fixed in master can you have a try ? cf https://github.com/reactiverse/reactive-pg-client/issues/200

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found