Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create factory method for com.julienviet.reactivex.pgclient.Tuple that takes varargs or a Collection #81

Open
jklingsporn opened this issue Mar 19, 2018 · 1 comment

Comments

@jklingsporn
Copy link

Hi,
I was using a statement like this Tuple tuple = Tuple.of(bindValues.toArray()); (with bindValues being an ArrayList) which works fine for the non-rx version. When switching to rxified version of Tuple my code fails in that regard, that Tuple now consists of 1 entry (which is an array) instead of n entries.
I'm doing this workaround for now:

Tuple tuple = Tuple.tuple();
bindValues.forEach(tuple::addValue);
@vietj
Copy link
Member

vietj commented Mar 19, 2018

I think it's because in vertx we need to imrpove the codegen support which is expected in 3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants