begin
dbh = PGconn.new(“127.0.0.1”, 5432, “”, “”, “test”, “usertest”,
“passwdtest”)
puts dbh.server_version
dbh.close
rescue PGError => e
puts e.message
end
This code actually doesn’t work, the method server_version is undefined,
but
is documented here: http://ruby.scripting.ca/postgres/rdoc/
What’s happening here ? Is the documentation outdated ?
This code actually doesn’t work, the method server_version is undefined, but
is documented here: http://ruby.scripting.ca/postgres/rdoc/
What’s happening here ? Is the documentation outdated ?
I’ll update the link and the rdocs to show that the published rdocs
are for the most recent snapshot release. The #server_version method
is new to the snapshot releases, and is not available in 0.7.1.
Dave
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.