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 46C7F9DCBEF for ; Sat, 18 Mar 2006 00:22:32 -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 82524-06 for ; Sat, 18 Mar 2006 00:22:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id D356F9DCB95 for ; Sat, 18 Mar 2006 00:22:28 -0400 (AST) Received: (qmail 25456 invoked from network); 18 Mar 2006 13:22:26 +0900 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 18 Mar 2006 13:22:26 +0900 Received: from unknown (HELO ?192.168.11.2?) (219.61.40.10) by sd.tpf.co.jp with SMTP; 18 Mar 2006 13:22:26 +0900 Message-ID: <441B8B01.10108@tpf.co.jp> Date: Sat, 18 Mar 2006 13:22:25 +0900 From: Hiroshi Inoue User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Bart Samwel CC: pgsql-odbc@postgresql.org Subject: Re: Most recent driver aborts transaction after one error References: <44194B56.5050304@samwel.tk> <4419FB0A.3000905@tpf.co.jp> <441A8E02.4080206@samwel.tk> In-Reply-To: <441A8E02.4080206@samwel.tk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.099 required=5 tests=[AWL=0.099] X-Spam-Score: 0.099 X-Spam-Level: X-Archive-Number: 200603/88 X-Sequence-Number: 7374 Bart Samwel wrote: > Hiroshi Inoue wrote: > >> Bart Samwel wrote: >> > After working around some problems, my test situation worked > perfectly. Thanks for the hint! > > These were the problems I encountered: > > 1. SQLGetInfo(SQL_DBMS_NAME) returns "PostgreSQL35W", and > SQLGetInfo(SQL_DBMS_VER) returns a number in the 07.30 range, while > I'm running PostgreSQL 8.1. I think that "PostgreSQL35W" is fine for a > SQL_DRIVER_NAME, but SQL_DBMS_NAME should be simply "PostgreSQL", and > SQL_DBMS_VER should return the DBMS version, not the driver version > (which should be returned by SQL_DRIVER_VER). I will examine it. Thanks. > > 2. I also encountered an access violation while exiting. The call > stack was not very informative: > > ntdll.dll!_RtlpWaitForCriticalSection@4() + 0x5b > ntdll.dll!_RtlEnterCriticalSection@4() + 0x46 > psqlodbc35w.dll!023a097e() > ntdll.dll!_RtlpFreeDebugInfo@4() + 0x57 > ntdll.dll!_RtlDeleteCriticalSection@4() + 0x78 > > If you want me to try this with a debug-compiled psqlodbc35w, just say > the word! It looks like a thread is about to Free a Handle while another thread is wating for the Handle. OK please send me the mylog output. regards, Hiroshi Inoue