Re: More strict bind param count checking - Mailing list pgsql-odbc

From Ludek Finstrle
Subject Re: More strict bind param count checking
Date
Msg-id 20051216155010.GA22144@soptik.pzkagis.cz
Whole thread Raw
In response to Re: More strict bind param count checking  (Hiroshi Inoue <inoue@tpf.co.jp>)
List pgsql-odbc
> >>>!         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

pgsql-odbc by date:

Previous
From: Ludek Finstrle
Date:
Subject: Re: Does postgresql-odbc work on 64-bit platforms?
Next
From: Ludek Finstrle
Date:
Subject: Re: Access violation C5 error on Visual FoxPro SQLEXEC() call after error