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 > * > *