X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 11F67476085 for ; Tue, 29 Apr 2003 13:44:29 -0400 (EDT) Received: from ns1.cecorp.com (ns1.cecorp.com [209.79.244.2]) by postgresql.org (Postfix) with ESMTP id 10546475ADE for ; Tue, 29 Apr 2003 13:43:53 -0400 (EDT) Received: from cecorp.com (O158.cecorp.com [209.79.244.158]) by ns1.cecorp.com (8.12.3/8.12.3/Debian-6.3) with ESMTP id h3THhmE2011524; Tue, 29 Apr 2003 10:43:49 -0700 Message-ID: <3EAEBADC.4040402@cecorp.com> Date: Tue, 29 Apr 2003 10:48:12 -0700 From: Jon V User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Wayne Armstrong Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC Behavior, where do I find help? References: <3EAD9F01.9040501@cecorp.com> <200304282222.h3SMMndw031077@mail.bacchus.com.au> In-Reply-To: <200304282222.h3SMMndw031077@mail.bacchus.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-37.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,NO_DNS_FOR_FROM, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/94 X-Sequence-Number: 2896 OK, the symptom is consistant with your explanation, so that makes sense in its way. I'm not sure how it applies to my greater problem though. Namely, I have a function stored in the database that returns a refcursor through 7.1 and (despite my wishes) a status through 7.2. The symptoms are identical to the begin;query;end example, but because it is a function I can't remove the begin and end. :( Someone else must be doing the same sort of thing... has anyone had a similar problem? Is there a trick I've missed? Right now we are stuck with 7.1, but we want to use PgAdminII, and the current version seems to auto-install odbc 7.2. Thanks, -Jon Wayne Armstrong wrote: >** Reply to message from Jon V on Mon, 28 Apr 2003 14:37:05 >-0700 >Hi, > Try it without the begin and end; > What you are seeing is the result of the last executed statement (end; ) > I don't know if this represents a change in the odbc driver - but it is >behaviour that seems reasonable to me :) > >Regards, >Wayne > > > >>Hello all, >> >>I'm sure this is a pretty basic misunderstanding or misapplication on my >>part. I'm hoping one of you can set me straight. >>I'm running PostgreSQL 7.3.2 under Cygwin. Running ODBC 7.01.00.10 (as >>displayed in the ODBC Data Source Administrator Driver tab), my >>application works fine. However, if I install any of the 7.02 ODBC >>drivers, my application fails. >> >>We've traced the cause of the failure, and it has me scratching my head. >>Using our application OR PgAdminII, I run the following: >> >>begin; >>select * from table_name >>end >> >>With 7.1 ODBC I get a result (in PgAdminII a table pops up on the >>screen, in our app we get the results of the query). With 7.2 I get a >>"query completed successfully" (status) message. The same thing happens >>when I run an SQL function we've written that passes a cursor back -- >>7.1 returns the result, 7.2 returns a status. >> >>I assume I must be doing something wrong because if it was really broken >>then nobody could use 7.2, and the latest versions of PgAdmin are quite >>forceful about automatically installing the 7.2 drivers if they aren't >>present. >> >>Where should I look? >> >>TIA, >> Jon >> >>