From: Mark Probert Date: 2006-03-04T04:32:16+09:00 Subject: Re: Strange problem with rb-postgres ngw wrote: > Hi *, > I'm using rb-postgres: > > require 'postgres' > I think this is the C extension, right? I have the version last updated $Author: noboru $ $Date: 2003/01/06 01:38:20 $ > This code actually doesn't work, the method server_version > is undefined, Yup. > begin > dbh = PGconn.new("127.0.0.1", 5432, "", "", "test", "usertest", > "passwdtest") > puts dbh.server_version Instead, you can: puts conn.exec("show server_version").result Hope this helps -- -mark. ---------------------------------------------------- Mark Probert probertm at acm dot org ----------------------------------------------------