From: DaVinci Date: 2001-01-22T21:58:54+09:00 Subject: [ruby-talk:9714] inheritance problem with postgres extension Hello friends. I have found a little problem with PostgreSql extension for Ruby. Anybody know why this example doesn't work?: ---------------------------------------------------------------- #!/usr/bin/ruby require 'postgres' class Conexion < PGconn def initialize begin super('localhost', 5432, '', '', 'foo', 'david', 'lalala') rescue PGError $stderr.print 'Error: ' << error end end end conn = Conexion.new p 'All right ;)' conn.close exit(0) ---------------------------------------------------------------- Error I get is: pg.rb:15:in `new': fe_sendauth: no password supplied (PGError) from ./pg.rb:15 I don't understand why this fails except for a bug. Am i wrong?. Thanks. David