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 6F1299DCAAE for ; Fri, 2 Dec 2005 07:36: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 50300-08 for ; Fri, 2 Dec 2005 07:36:45 -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 A72F99DCAD3 for ; Fri, 2 Dec 2005 07:36:46 -0400 (AST) Received: (from luf@localhost) by smtp.pzkagis.cz (8.11.6/8.11.6) id jB2BajU21706; Fri, 2 Dec 2005 12:36:45 +0100 Date: Fri, 2 Dec 2005 12:36:45 +0100 From: Ludek Finstrle To: Andrus Cc: pgsql-odbc@postgresql.org Subject: Re: Application crash after error Message-ID: <20051202113645.GA21663@soptik.pzkagis.cz> References: <438F31C3.4020205@us.michelin.com> <20051201184050.C803A9DD43B@postgresql.org> <20051201195932.GA16735@soptik.pzkagis.cz> <20051202103824.GA21226@soptik.pzkagis.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/17 X-Sequence-Number: 6496 > > Hmmm. I get idea right now. I'll try it againist MySQL. It's ODBC is > > open source so I can learn from it ... > > Please could you change your example to support MySQL ODBC? > > Maybe (or maybe not) it helps. > > If you change the connection string in testsql.prg and remove WITHOUT OIDS > clauses in CREATE TABLE commands I think this sample must work with other > odbc drivers also. As I wrote you main.exe doesn't use testsql.prg. I changed connect string in testsql.prg but connect string in ODBC still contains user 'postgresql' with password you typed. It didn't use my changes in testsql.prg. > Thank you. I have one unchecked thought. If null instead of empty string is > passed as value to text type column, maybe the error does not occur. I don't think so. It's text column so it need SQLPutData. That's the biggest problem. Luf P.S. I change subject as it isn't about #Deleted ...