From: Nick Black Date: 2006-11-30T00:02:26+09:00 Subject: PGConn - qutie a trivial question from a newb ------=_Part_30357_11607010.1164812540173 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I have this code: 28 dbh = get_connection 29 res = dbh.exec("select max(ogc_fid) from #{table};") 30 max = res[0] 31 32 puts max Which successfully prints the SQL query to the terminal. I want to be able to use the result later in the code, but I'm not really clear what type of object is being returned. How can I figure out what is being returned and convert it to an integer or a string? Thanks, -- Nick Black -------------------------------- http://www.blairclock.com --------------------------------- http://www.blacksworld.net ------=_Part_30357_11607010.1164812540173--