On Monday, May 13, 2019 at 10:23:25 AM UTC-7, Jeremy Evans wrote:
>
> On Monday, May 13, 2019 at 9:17:39 AM UTC-7, Alexander Popov wrote:
>>
>> Thank you.
>>
>> We added:
>>
>> servers: { read_only: {} }
>>
>> , as written in the documentation, and we're getting:
>>
>> ```
>> > DB.with_server(:foo) { Artist.all }
>> NoMethodError: undefined method `[]' for nil:NilClass
>> from
>> /home/alex/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/sequel-5.19.0/lib/sequel/connection_pool/sharded_threaded.rb:313:in
>>
>> `block in owned_connection'
>>
>> Is it normal?
>>
>
> Thank you for the report. I can reproduce this. This appears to be a bug
> in the server_block extension, it should be checking the servers_hash and
> it isn't. I will fix it shortly.
>
Fixed:
https://github.com/jeremyevans/sequel/commit/be2278fe04f3163651535309b5b9626ba7105df3
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/50cbb35f-b568-469b-a488-f679970dbcd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.