X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C0AAC9DCC0D for ; Wed, 21 Dec 2005 09:12:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16669-03 for ; Wed, 21 Dec 2005 09:12:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 55F389DCC1B for ; Wed, 21 Dec 2005 09:12:47 -0400 (AST) Received: (from luf@localhost) by smtp.pzkagis.cz (8.11.6/8.11.6) id jBLDCHt30962; Wed, 21 Dec 2005 14:12:17 +0100 Date: Wed, 21 Dec 2005 14:12:17 +0100 From: Ludek Finstrle To: zhaoxin Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC ErrorCode issue Message-ID: <20051221131217.GC30837@soptik.pzkagis.cz> References: <43A7DA53.4010006@necas.nec.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43A7DA53.4010006@necas.nec.com.cn> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.044 required=5 tests=[AWL=0.044] X-Spam-Score: 0.044 X-Spam-Level: X-Archive-Number: 200512/287 X-Sequence-Number: 6766 > I have a issue with PostgreSQL ODBC Driver (psqlodbc-08.01.0102) > If I use this driver to connect database , it always return the same > error code like this : sqlstate = HY000 , NativeError = 7 whatever > error occurred . > so I can not differ the error type with the sqlstate and NativeError > that occurred . > I try to change the driver to psqlodbc-8_01_0104 , the issue do not > happen. but what is wrong with psqlodbc-08.01.0102 ? I don't understand you well. When you get error? We have opposite report. The psqlodbc-08.01.0102 returns proper sqlstate after statement error and 08.01.0104 don't. I fixed it. Please take a look at: http://pgfoundry.org/tracker/index.php?func=detail&aid=1000495&group_id=1000125&atid=538 If you have another problem feel free to describe it better (e.g. append your mylog output and comment it when it differs from your expectation. Regards, Luf