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 A728E9DCD87 for ; Fri, 16 Dec 2005 11:50:14 -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 59517-02 for ; Fri, 16 Dec 2005 11:50:19 -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 EB80B9DCD91 for ; Fri, 16 Dec 2005 11:50:11 -0400 (AST) Received: (from luf@localhost) by smtp.pzkagis.cz (8.11.6/8.11.6) id jBGFoAD22196; Fri, 16 Dec 2005 16:50:10 +0100 Date: Fri, 16 Dec 2005 16:50:10 +0100 From: Ludek Finstrle To: Hiroshi Inoue Cc: pgsql-odbc@postgresql.org Subject: Re: More strict bind param count checking Message-ID: <20051216155010.GA22144@soptik.pzkagis.cz> References: <20051214002452.GA9345@soptik.pzkagis.cz> <43A0EE2D.8090702@tpf.co.jp> <20051215051256.GA21336@soptik.pzkagis.cz> <43A10178.5070107@tpf.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43A10178.5070107@tpf.co.jp> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.009 required=5 tests=[AWL=0.009] X-Spam-Score: 0.009 X-Spam-Level: X-Archive-Number: 200512/207 X-Sequence-Number: 6686 > >>>! if (ipdopts->allocated == marker_count) > >> > >>Why are you using the operator '==' not '>=' ? > >>AFAIK there's no such limitation. > > > >We have problems with Visual FoxPro. It calls SQLCancel without > >FreeStmt(SQL_RESET_PARAMS). It leads to failure becouse next > >ExecDirect with fewer parameters in some cases think that it > >has data_at_exec (which was parameters from previous). > > Isn't it the right solution for the problem to check data_at_exec > appropriately ? You're absolutely right. Thank you for showing me another view. This is bad patch. I'll try another way. Luf