X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5CC1FD85A4 for ; Tue, 22 Nov 2005 04:49:34 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39663-04 for ; Tue, 22 Nov 2005 08:49:34 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from web52901.mail.yahoo.com (web52901.mail.yahoo.com [206.190.49.11]) by svr1.postgresql.org (Postfix) with SMTP id 647F8D7925 for ; Tue, 22 Nov 2005 04:49:31 -0400 (AST) Received: (qmail 93182 invoked by uid 60001); 22 Nov 2005 08:49:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=o3wqtXoKTLeRgGwATGjdXWcRirvWi5O1r+dK1hIlD3EemmfG1QXGsNzpi7R1Rxxi4i1qyfktT7Cv3UGtsl49hgZcIMxlZswjEW6qdntuCzkYhXvGu4xehTg2/bfHdRwlRPFDR0aCQqmiLaOF5Q9qI93mh7rhK4QgrKzgqU8uD4E= ; Message-ID: <20051122084932.93180.qmail@web52901.mail.yahoo.com> Received: from [24.8.120.181] by web52901.mail.yahoo.com via HTTP; Tue, 22 Nov 2005 00:49:32 PST Date: Tue, 22 Nov 2005 00:49:32 -0800 (PST) From: CSN Subject: Re: ruby/postgres - getting assoc array of rows? To: Michael Fuhr Cc: pgsql-interfaces@postgresql.org In-Reply-To: <20051121020402.GA63522@winnie.fuhr.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.544 required=5 tests=[AWL=-0.152, DNS_FROM_RFC_ABUSE=0.479, FROM_HAS_ULINE_NUMS=0.217] X-Spam-Score: 0.544 X-Spam-Level: X-Archive-Number: 200511/60 X-Sequence-Number: 5856 It looks like the snapshot version causes problems for Rails :( http://dev.rubyonrails.org/ticket/2977 http://www.ruby-forum.com/topic/9114#new reals and numerics get converted to values like nil, 1, 2, true, ... I had to uninstall it and go back to the 0.71 version. The postgres.so files get installed in different locations - perhaps I can configure Rails and commandline scripts to load the one they need. csn --- Michael Fuhr wrote: > On Sun, Nov 20, 2005 at 12:28:32PM -0800, CSN wrote: > > Ah.. I installed the snapshot manually and the script works fine now. > > They should update the gem version - Jan. 2003 is quite a while ago. > > Does it matter if the postgres library is installed via 'gem' or not? > > I wouldn't think so, except maybe for how your program loads the > code (require vs. require_gem). > > -- > Michael Fuhr > __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com