On Thursday, June 15, 2017 at 7:39:14 AM UTC-7, Aakash Upadhyay wrote:
>
> Hey,
> I have been having this issue where even though I explicitly provide a
> sharding server, the query runs on default server.
>
> The connection object looks like :
> obj = #<Sequel::JDBC::Database:
> "jdbc:postgresql://host1:5432/db?user=xxx&password=xyz"
> {:servers=>{0=>"jdbc:postgresql://host1:5432/db?user=xxx&password=xyz",
> 1=>"jdbc:postgresql://host2:5432/db?user=xxx&password=xyz"}}>
>
> The query being run :
> obj.copy_into(table_name, data: some_data), server: 1)
>
> Can anyone let me know what's wrong in this?
>
This was a bug in the jdbc/postgresql adapter's Database#copy_into method.
I just fixed it:
https://github.com/jeremyevans/sequel/commit/da32069947576273c5d6403802613b6c02e76c4f
Thanks,
Jeremy
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.