[DRE-maint] Bug#899307: ruby-sequel-pg: All SELECT ::Dataset methods fails with FrozenError

Andrey Nikitin andrey.d.nikitin at gmail.com
Tue May 22 13:14:25 BST 2018


Package: ruby-sequel-pg
Version: 1.6.16-1+b2
Severity: grave
Justification: renders package unusable

All SELECT methods like all,first,each,... fails with FrozenError.

Example:
irb(main):007:0> DB
=> #<Sequel::Postgres::Database: {:adapter=>"postgres", :database=>"xxx", :user=>"xxx", :password=>"xxx", :host=>"127.0.0.1"}>
irb(main):008:0> DB[:events].first
Traceback (most recent call last):
       16: from /usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:688:in `single_record'
       15: from /usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:700:in `single_record!'
       14: from /usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:947:in `with_sql_first'
       13: from /usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:939:in `with_sql_each'
       12: from /usr/lib/ruby/vendor_ruby/sequel/adapters/postgres.rb:569:in `fetch_rows'
       11: from /usr/lib/ruby/vendor_ruby/sequel/dataset/actions.rb:1085:in `execute'
       10: from /usr/lib/ruby/vendor_ruby/sequel/adapters/postgres.rb:273:in `execute'
        9: from /usr/lib/ruby/vendor_ruby/sequel/database/connecting.rb:269:in `synchronize'
        8: from /usr/lib/ruby/vendor_ruby/sequel/connection_pool/threaded.rb:91:in `hold'
        7: from /usr/lib/ruby/vendor_ruby/sequel/adapters/postgres.rb:273:in `block in execute'
        6: from /usr/lib/ruby/vendor_ruby/sequel/adapters/postgres.rb:477:in `check_database_errors'
        5: from /usr/lib/ruby/vendor_ruby/sequel/adapters/postgres.rb:273:in `block (2 levels) in execute'
        4: from /usr/lib/ruby/vendor_ruby/sequel/adapters/postgres.rb:455:in `_execute'
        3: from /usr/lib/ruby/vendor_ruby/sequel/adapters/postgres.rb:135:in `execute'
        2: from /usr/lib/ruby/vendor_ruby/sequel/adapters/postgres.rb:569:in `block in fetch_rows'
        1: from /usr/lib/ruby/vendor_ruby/sequel/adapters/postgres.rb:569:in `yield_hash_rows'
FrozenError (can't modify frozen Sequel::Postgres::Dataset)

But
irb(main):017:0> DB[:events].delete
=> 0

P.S.
  * With mysql2 apapter it is ok.
  * In Debian 9 Stretch, too, everything is fine, both mysql2 and postgres.


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.16.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ruby-sequel-pg depends on:
ii  libc6        2.27-3
ii  libgmp10     2:6.1.2+dfsg-3
ii  libpq5       10.3-2
ii  libruby2.5   2.5.1-1+b1
ii  ruby         1:2.5.1
ii  ruby-pg      0.19.0-2+b1
ii  ruby-sequel  5.6.0-1

ruby-sequel-pg recommends no packages.

ruby-sequel-pg suggests no packages.



More information about the Pkg-ruby-extras-maintainers mailing list