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 793719DC99F for ; Wed, 14 Dec 2005 06:15:03 -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 30206-06 for ; Wed, 14 Dec 2005 06:15:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 9DBC99DC99D for ; Wed, 14 Dec 2005 06:15:00 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 937303093C; Wed, 14 Dec 2005 11:15:01 +0100 (MET) From: "Andrus" X-Newsgroups: pgsql.interfaces.odbc Subject: Re: Access violation C5 error on Visual FoxPro SQLEXEC() call after error Date: Wed, 14 Dec 2005 12:13:45 +0200 Organization: Hub.Org Networking Services Lines: 27 Message-ID: References: <20051214011128.GC9345@soptik.pzkagis.cz> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original To: pgsql-odbc@postgresql.org 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/169 X-Sequence-Number: 6648 > Dave I propose to rollback your patch for the first Andrus's problem > as it breaks ODBC specification (if I understand this well): > | After SQLExecute or SQLExecDirect returns SQL_NEED_DATA and before > | data has been sent for all data-at-execution parameters, > | an application can call SQLCancel to cancel the statement execution. > | After the statement has been canceled, the application can call > | SQLExecute or SQLExecDirect again. > > I think bind parameters can't be destroyed in SQLCancel. > > I attach patch which may solve Andrus's problem and change a little > Dave's patch. I see application may call FreeStmt(SQL_CLOSE) and > FreeStmt(SQL_RESET_PARAMS). But VFP doesn't call it. Ludek, thank you. It's very sad that Visual FoxPro cannot be used with Postgres ODBC driver release versions. I havent seen this problem with MySQL, Oracle and Microsoft SQL ODBC drivers. So it seems that those drivers do not follow ODBC driver specifications? As you wrote it may be possible to study MySQL ODBC driver source code. Andrus.