Re: PG 8 INOUT parameters & ADO - Mailing list pgsql-odbc

From Philippe Lang
Subject Re: PG 8 INOUT parameters & ADO
Date
Msg-id 6C0CF58A187DA5479245E0830AF84F421D0C35@poweredge.attiksystem.ch
Whole thread Raw
In response to PG 8 INOUT parameters & ADO  ("Philippe Lang" <philippe.lang@attiksystem.ch>)
Responses Re: PG 8 INOUT parameters & ADO  (Hiroshi Inoue <inoue@tpf.co.jp>)
List pgsql-odbc
Hi,

Sorry to ask this question again, but is there a chance ADO
"oCommand.Parameters.Refresh" could get the parameters names configured in
Postgresql? The idea is to be able to do something like:

oCommand.Parameters.Refresh
oCommand.Parameters("a").Value = a
oCommand.Parameters("b").Value =

Instead of

oCommand.Parameters.Refresh
oCommand.Parameters(0).Value = a
oCommand.Parameters(1).Value = b


Thanks, bye

Philippe


-----Message d'origine-----
De : pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] De la part de Philippe Lang
Envoyé : mercredi, 26. avril 2006 09:57
À : Hiroshi Inoue
Cc : pgsql-odbc@postgresql.org
Objet : Re: [ODBC] PG 8 INOUT parameters & ADO

Hi Hiroshi,

It works fine, thanks.

Now I can use:

oCommand.Parameters.Refresh
oCommand.Parameters(0).Value = a
oCommand.Parameters(1).Value = b


Just one question, which might be ADO-specific... Is the refresh capable of
recognizing the parameters names?
After the refresh, all parameters names are set to "". If they inhereited
the names of the parameters in Postgreql, that would allow us to do
something like:

oCommand.Parameters.Refresh
oCommand.Parameters("a").Value = a
oCommand.Parameters("b").Value = b

That would avoid confusion and bugs when giving initial values to the
parameters...

-----Message d'origine-----
De : Hiroshi Inoue [mailto:inoue@tpf.co.jp] Envoyé : mardi, 25. avril 2006
23:32 À : Philippe Lang Cc : Ludek Finstrle; pgsql-odbc@postgresql.org Objet
: Re: [ODBC] PG 8 INOUT parameters & ADO

Philippe Lang wrote:

>Ludek,
>
>There is small problem apparently: if I replace
>
>

Please replace the dll by the one at
 http://www.geocities.jp/inocchichichi/psqlodbc/index.html .

regards,
Hiroshi Inoue


Attachment

pgsql-odbc by date:

Previous
From: Jean Huveneers
Date:
Subject: Re: Error when I try to update
Next
From:
Date:
Subject: [ psqlodbc-Bugs-1000604 ] 8.01.0200 slow with long queries