[DRE-maint] Bug#736183: ruby-dbd-pg: broken with ruby 2.0

Lucas Nussbaum lucas at debian.org
Mon Jan 20 19:42:33 UTC 2014


Package: ruby-dbd-pg
Version: 0.3.9+gem2deb-1
Severity: important

Hi,

I'm using the following, simple test setup:

1) ssh tunnel to UDD:
ssh -NL 5452:localhost:5452 lucas at ullmann.debian.org

2) this simple script:
----------------------------------------->8
require 'dbi'
require 'pp'
require 'pg'

$dbh = DBI::connect('DBI:Pg:dbname=udd;port=5452;host=localhost', 'guest')
q= <<EOF
  SELECT distinct severity from bugs limit 1
EOF
sth = $dbh.prepare(q)
sth.execute
rows = sth.fetch_all
pp rows

conn = PGconn.open(:dbname => 'udd', :user => 'guest', :port => 5452, :host => 'localhost')
res  = conn.exec('SELECT distinct severity from bugs')
p res.getvalue(0,0)
----------------------------------------->8

I get the following output:

*** lucas at grep:~$ ruby1.9.3 t.rb 
[["wishlist"]]
"grave"
*** lucas at grep:~$ ruby2.0 t.rb 
[nil]
"grave"

For some reason, ruby-dbd-pg seems broken with Ruby 2.0, whereas ruby-pg  seems
to work fine.

- Lucas


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'stable'), (300, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ruby-dbd-pg depends on:
ii  ruby                          1:1.9.3
ii  ruby-dbi                      0.4.5-1
ii  ruby-pg                       0.17.0-1
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.484-1
ii  ruby2.0 [ruby-interpreter]    2.0.0.353-1

ruby-dbd-pg recommends no packages.

ruby-dbd-pg suggests no packages.

-- no debconf information



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