pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludek Finstrle <luf@pzkagis.cz>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: More strict bind param count checking
Date: Thu, 15 Dec 2005 06:12:56 +0100
Message-ID: <20051215051256.GA21336@soptik.pzkagis.cz> (raw)
In-Reply-To: <43A0EE2D.8090702@tpf.co.jp>
References: <20051214002452.GA9345@soptik.pzkagis.cz>
	<43A0EE2D.8090702@tpf.co.jp>

> Hi Ludek, thanks to your recent effort to improve the psqlodbc driver.
> Please let me comment on your patch a little.

Hello,

  your comments are welcome.

> > ! 		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).

So I think this could be good prevent againist driver failure.

> > + 	if (ipdopts->allocated != marker_count)
> 
> Why are you using '!=' not '<' ?

It's the same as previous (only negated).

> > + 	ipdopts = SC_get_IPDF(stmt);
> > + 	if (ipdopts->allocated != marker_count)
> 
> The same comment as the previous one.
> In addtion, the check is not appropriate because Exec_with_parameter_resolved
>  could be called with insufficient parameters.

I take a look at it again.

Thanks for comments

Luf



view thread (11+ messages)  latest in thread

Message-ID: <20051215051256.GA21336@soptik.pzkagis.cz>
Permalink:  ../20051215051256.GA21336@soptik.pzkagis.cz/
Also on:    postgresql.org/message-id/20051215051256.GA21336@soptik.pzkagis.cz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: luf@pzkagis.cz, inoue@tpf.co.jp
  Subject: Re: More strict bind param count checking
  In-Reply-To: <20051215051256.GA21336@soptik.pzkagis.cz>
  References: <20051214002452.GA9345@soptik.pzkagis.cz> <43A0EE2D.8090702@tpf.co.jp> <20051215051256.GA21336@soptik.pzkagis.cz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox