From awessel@masterap.nl Mon Sep 12 09:54:52 2011 Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 5EDEAB5DBD1 for ; Mon, 12 Sep 2011 06:54:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 73106-07 for ; Mon, 12 Sep 2011 09:54:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailhandling.swretail.nl (mailhandling.swretail.nl [82.94.250.78]) by mail.postgresql.org (Postfix) with ESMTP id 0AB43B5DBC4 for ; Mon, 12 Sep 2011 06:54:45 -0300 (ADT) Received: from [10.10.10.50] (a83-161-130-78.adsl.xs4all.nl [83.161.130.78]) by mailhandling.swretail.nl (Postfix) with ESMTP id DC92ED0053 for ; Mon, 12 Sep 2011 11:41:10 +0200 (CEST) Message-ID: <4E6DD6E3.2040605@masterap.nl> Date: Mon, 12 Sep 2011 11:54:43 +0200 From: Albert Reply-To: awessel@masterap.nl User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Fwd: ODBC breaks on some machines References: <4E6DCD24.2030806@swretail.nl> In-Reply-To: <4E6DCD24.2030806@swretail.nl> X-Opacus-Archived: none X-Forwarded-Message-Id: <4E6DCD24.2030806@swretail.nl> Content-Type: multipart/alternative; boundary="------------090008030003060204060008" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201109/6 X-Sequence-Number: 10703 This is a multi-part message in MIME format. --------------090008030003060204060008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, We have a strange problem going on. The postgres ODBC breaks down at random at some machines. What happens is: Via ODBC we call an postgresql function (as example this: ) : select getmynumber('abc') as result; This works fine we can use the result in our application. However, on some of our customers PC's this suddenly stops working. We get an ODBC error Error -1:'' The only thing I can find in the odbc logging that is different opposed to the correct situation: QLExtendedFetch with return code -1 (SQL_ERROR) It seems random that this occurs. I cannot relate it to a windows patch, nor another software installation nor our own software. The problem, over the course of 2 years, happens every now and then on some random pc. The only thing we have found to get it working again is to reinstall Windows. (it has happened now on several XP and several Windows 7 machines) The client application uses MFC ODBC. I have logging of odbc, mylog and psqlodc available. Can somebody help with this? Kind regards, Albert Wessel * * --------------090008030003060204060008 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

 Hi,

We  have a strange problem going on. The postgres ODBC breaks down at random at some machines.

What happens is:  Via ODBC we call an postgresql function (as example this: ) :

select getmynumber('abc') as result;

This works fine we can use the result in our application. However, on some of our customers PC's this suddenly stops working. We get an ODBC error Error -1:''  The only thing I can find in the odbc logging that is different opposed to the correct situation: QLExtendedFetch  with return code -1 (SQL_ERROR)

It seems random that this occurs. I cannot relate it to a windows patch, nor another software installation nor our own software.  The problem, over the course of 2 years, happens every now and then on some random pc. The only thing we have found to get it working again is to reinstall Windows. (it has happened now on several XP and several Windows 7 machines)

The client application uses MFC ODBC.

I have logging of odbc, mylog and psqlodc available.

Can somebody help with this?
Kind regards,
Albert Wessel

--------------090008030003060204060008-- From hiroshi@winpg.jp Fri Sep 30 12:36:20 2011 Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CFE08B5DC63 for ; Fri, 30 Sep 2011 09:36:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 17639-02-4 for ; Fri, 30 Sep 2011 12:36:14 +0000 (UTC) X-Greylist: delayed 00:07:44.243612 by SQLgrey-1.8.0-rc2 Received: from winpg.jp (winpg.jp [182.48.52.43]) by mail.postgresql.org (Postfix) with ESMTP id F078DB5DC65 for ; Fri, 30 Sep 2011 09:36:07 -0300 (ADT) Received: from [192.168.202.3] (p2009-ipad401funabasi.chiba.ocn.ne.jp [123.217.236.9]) by winpg.jp (Postfix) with ESMTPA id 72F0A24A9C8; Fri, 30 Sep 2011 21:28:22 +0900 (JST) Message-ID: <4E85B5E9.6050903@winpg.jp> Date: Fri, 30 Sep 2011 21:28:25 +0900 From: Hiroshi Saito User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ja; rv:1.9.2.22) Gecko/20110902 Thunderbird/3.1.14 MIME-Version: 1.0 To: awessel@masterap.nl CC: pgsql-odbc@postgresql.org, Hiroshi Inoue Subject: Re: Fwd: ODBC breaks on some machines References: <4E6DCD24.2030806@swretail.nl> <4E6DD6E3.2040605@masterap.nl> In-Reply-To: <4E6DD6E3.2040605@masterap.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/12 X-Sequence-Number: 10709 Hi. Sorry very late reaction. The method of CURSOR which you use may influence a result. Would you be shown the reproducible code, if possible? and, Please send mylog to Inoue-san with me. I appreciate your perseverance. thanks. Regards, Hiroshi Saito (2011/09/12 18:54), Albert wrote: > > > Hi, > > We have a strange problem going on. The postgres ODBC breaks down at > random at some machines. > > What happens is: Via ODBC we call an postgresql function (as example > this: ) : > > select getmynumber('abc') as result; > > This works fine we can use the result in our application. However, on > some of our customers PC's this suddenly stops working. We get an ODBC > error Error -1:'' The only thing I can find in the odbc logging that is > different opposed to the correct situation: QLExtendedFetch with return > code -1 (SQL_ERROR) > > It seems random that this occurs. I cannot relate it to a windows patch, > nor another software installation nor our own software. The problem, > over the course of 2 years, happens every now and then on some random > pc. The only thing we have found to get it working again is to reinstall > Windows. (it has happened now on several XP and several Windows 7 machines) > > The client application uses MFC ODBC. > > I have logging of odbc, mylog and psqlodc available. > > Can somebody help with this? > Kind regards, > Albert Wessel > * > *