Re: PG 8 INOUT parameters & ADO
От | Philippe Lang |
---|---|
Тема | Re: PG 8 INOUT parameters & ADO |
Дата | |
Msg-id | 6C0CF58A187DA5479245E0830AF84F421D0C35@poweredge.attiksystem.ch обсуждение исходный текст |
Ответ на | PG 8 INOUT parameters & ADO ("Philippe Lang" <philippe.lang@attiksystem.ch>) |
Ответы |
Re: PG 8 INOUT parameters & ADO
|
Список | 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
Вложения
В списке pgsql-odbc по дате отправления: