Date: Mon, 16 Nov 2009 16:17:48 +0100 From: dirk.meyer@dinoex.sub.org (Dirk Meyer) To: penty.wenngren@dgc.se, freebsd-ruby@freebsd.org Subject: Re: Ruby, dbi and PostgreSQL Message-ID: <CRumTC/njm@dmeyer.dinoex.sub.org> References: <iLQ6Bi/njm@dmeyer.dinoex.sub.org> <20091111160649.GL74360@picard.dgc.se> <iLQ6Bi/njm@dmeyer.dinoex.sub.org> <20091116150907.GY74360@picard.dgc.se>
next in thread | previous in thread | raw e-mail | index | archive | help
Hallo Penty Wenngren, > Thanks Dirk, it seems your patches solved that problem. However, now I get > another error message instead: > > $ irb > irb(main):001:0> require 'rubygems' > => true > irb(main):002:0> require 'dbi' > => true > irb(main):003:0> dbh = DBI.connect("DBI:Pg:mydb","user","secret") > DBI::OperationalError: can't format > from /usr/local/lib/ruby/site_ruby/1.8/dbd/pg/database.rb:82:in > `initialize' > from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `new' > from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `connect' > from /usr/local/lib/ruby/site_ruby/1.8/dbi/handles/driver.rb:33:in > `connect' > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:148:in `connect' > from (irb):3 The short name never worked for me even before the update. Do you have a setup where it worked this way? I used for some years this form and I tested it: dbh = DBI.connect("DBI:Pg:dbname=mydb","user","secret") kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [dirk.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org] http://people.freebsd.org/~dinoex/errorlogs/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CRumTC/njm>