X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id DE422D1F251 for ; Tue, 12 Aug 2003 15:39:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 78370-03 for ; Tue, 12 Aug 2003 12:37:57 -0300 (ADT) Received: from www.postgresql.com (www.postgresql.com [64.117.225.209]) by svr1.postgresql.org (Postfix) with ESMTP id D8CD4D1C96C for ; Tue, 12 Aug 2003 12:38:35 -0300 (ADT) Received: from traminer.chepelov.org (traminer.chepelov.org [62.212.101.212]) by www.postgresql.com (Postfix) with ESMTP id 755D3CF4981 for ; Tue, 12 Aug 2003 06:32:26 -0300 (ADT) Received: from muscat-eth0.intra.chepelov.org ([2001:7a8:29d4:0:2a0:24ff:fea6:57a0] helo=muscat.intra.chepelov.org) by traminer.chepelov.org with esmtp (Exim 4.20) id 19mVSQ-0004OD-Kr for pgsql-odbc@postgresql.org; Tue, 12 Aug 2003 11:28:46 +0200 Received: from cyrille by muscat.intra.chepelov.org with local (Exim 4.20) id 19mVSn-0006SR-FM for pgsql-odbc@postgresql.org; Tue, 12 Aug 2003 11:29:09 +0200 Date: Tue, 12 Aug 2003 11:29:09 +0200 To: pgsql-odbc@postgresql.org Message-ID: <20030812092909.GA22491@chepelov.org> References: <20030807145659.GA3797@chepelov.org> <20030807151550.GA3977@chepelov.org> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <20030807151550.GA3977@chepelov.org> X-Face: "99`N"mZV/:OLp[>#d3R; u.!ivtwAEpIQDL8rD#; L3Wm)~^)Uv=#; S!LZf1y8oRY7J#JR\Lr{*4Cn*32C89ln>0~5~tm--}j%hvhj+vtW> X-SA-Exim-Mail-From: cyrille@chepelov.org Subject: Re: of declare/fetch and strange HY010 errors (resolved) Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Version: 3.0+cvs (built Mon Jul 28 22:52:54 EDT 2003) X-SA-Exim-Scanned: Yes X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/18 X-Sequence-Number: 3138 Greetings, sorry for the disturbance; there really was a problem in my code, which caused spurious SQLEndTran() to be called between the SQLExecute() and the SQLFetch() -- thus the HY010 was fully justified. What's strange is that this extra SQLEndTran() doesn't disturb the driver without declare/fetch, which is why the problem could remain unnoticed for months. I'd think that an extra mylog("PGAPI_Execute: exit result=3D%i",retval) just before the end of PGAPI_Execute() might have helped me find the problem faster (without creating this list traffic). Also, being able to use declare/fetch on a selective basis would still be an interesting feature, I= MO (e.g, using declare/fetch unless the statement attrutes force a fallback to the classic behaviour); unfortunately, I wasn't able to successfully recompile the driver (Visual Studio 6.0 GUI: yields a corrupted executable [I'm not a heavy VS user, so I might have done something wrong]; VS 6.0 using NMAKE: a .rc file is missing, killing the build. Cygwin: unhappy at link time because of an undefined reference to =1FWinMain@16'. What's the current recommended build environment?) -- Cyrille --=20