X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CA812475F26 for ; Mon, 28 Apr 2003 18:23:06 -0400 (EDT) Received: from mail.bacchus.com.au (mail.bacchus.com.au [203.22.71.65]) by postgresql.org (Postfix) with ESMTP id 48EB3475B47 for ; Mon, 28 Apr 2003 18:23:05 -0400 (EDT) Received: from localhost ([203.185.231.74]) by mail.bacchus.com.au (8.12.8/8.12.8) with SMTP id h3SMMndw031077; Tue, 29 Apr 2003 08:22:50 +1000 Message-Id: <200304282222.h3SMMndw031077@mail.bacchus.com.au> Date: Tue, 29 Apr 2003 08:22:45 +1000 To: Jon V , pgsql-odbc@postgresql.org From: "Wayne Armstrong" Reply-To: "Wayne Armstrong" In-Reply-To: <3EAD9F01.9040501@cecorp.com> References: <3EAD9F01.9040501@cecorp.com> Subject: Re: ODBC Behavior, where do I find help? MIME-Version: 1.0 X-Mailer: The Polarbar Mailer; version=1.25a; build=1965 X-Spam-Status: No, hits=-26.0 required=5.0 tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES 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/91 X-Sequence-Number: 2893 ** 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 > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html