Re: Problem with libpsqlodbc
От | Hiroshi Inoue |
---|---|
Тема | Re: Problem with libpsqlodbc |
Дата | |
Msg-id | 3B8D85AE.877AB230@tpf.co.jp обсуждение исходный текст |
Ответ на | RE: Problem with libpsqlodbc ("Hiroshi Inoue" <Inoue@tpf.co.jp>) |
Список | pgsql-odbc |
Gilles DAROLD wrote: > > Yes it work on other database but probably i'm missing something... It's a limited spec of PostgreSQL that SELECT can call function(procedure)s but SELECT returns a result set not a parameter. > > For oracle they do > > create_proc => '{call create_person(?)}' > add_proc => '{call set_person_name(?,?)}' It's an ODBC's spec to call a procedure. > > Is that the problem ? Should I use call ? There seems to be 2 ways. 1) You could use the following. create_proc => '{?=call create_person(?)}' add_proc => '{?=call set_person_name(?, ?)}' (optional parameter marker ?= at the start of the syntax is needed if you need to accept the return value) But psqlodbc driver couldn't handle the syntax other than that of the latest snapshot. Could you try it ? 2) SELECT returns a result set. You could fetch and get the result using SQLFetch(), SQLGetData() etc. regards, Hiroshi Inoue
В списке pgsql-odbc по дате отправления: