Received: from u1.abs.net (root@u1.abs.net [207.114.0.131]) by hub.org (8.9.2/8.9.1) with ESMTP id TAA04548 for ; Fri, 9 Apr 1999 19:08:29 -0400 (EDT) (envelope-from byronn@insightdist.com) Received: from insightdist.com (nobody@localhost) by u1.abs.net (8.9.0/8.9.0) with UUCP id SAA29188 for pgsql-interfaces@postgreSQL.org; Fri, 9 Apr 1999 18:52:13 -0400 (EDT) X-Authentication-Warning: u1.abs.net: nobody set sender to insightdist.com!byronn using -f Received: from ceodev by insightdist.com (AIX 3.2/UCB 5.64/4.03) id AA20468; Fri, 9 Apr 1999 18:32:03 -0400 Received: from ppp0_ceodev by ceodev (AIX 4.1/UCB 5.64/4.03) id AA81448; Fri, 9 Apr 1999 18:32:01 -0400 Message-Id: <370E81AD.5A533D54@insightdist.com> Date: Fri, 09 Apr 1999 18:39:41 -0400 From: Byron Nikolaidis X-Mailer: Mozilla 4.05 [en] (Win95; I) Mime-Version: 1.0 To: "Ken J. Wright" Cc: "pgsql-interfaces@postgreSQL.org" Subject: Re: PSQLODBC error References: <3.0.32.19990409100931.008e4230@ren.cncware.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ken J. Wright wrote: > Byron, > > Some more info. In the driver setup, if Parse Statements is checked, the > error occurs. If not checked, then all is ok. I noticed in parse.c that > memory for field info is allocated in 32 field blocks. Perhaps the error is > here? At least I am now out of the deep water. > > Yeah, I had a feeling about the parse statements thing. I think you found a bug. FYI, the "parse statements" option was added before we had the 6.4 protocol. The newer protocol passes the size of the fields back in a query, which is something the old 6.3 protocol did not do. So I wrote this grand parse routine which would take a query and go ask the database about all the fields. The "parse statements" still has an advantage over the 6.4 protocol, in that it can find out about whether a field in a query can be "null" or not. Plus, it can find out about column alias names. Unfortunately, I don't think the parse statements can handle some of the newer syntaxes that will be introduced in 6.5. To be honest, I don't think the driver should be parsing sql statements too much anyway. Byron