Re: Problem returning a cursor through ODBC to ASP layer from postgres
В списке pgsql-odbc по дате отправления:
| От | Hiroshi Inoue |
|---|---|
| Тема | Re: Problem returning a cursor through ODBC to ASP layer from postgres |
| Дата | |
| Msg-id | EKEJJICOHDIEMGPNIFIJMEIDJCAA.Inoue@tpf.co.jp обсуждение |
| Ответ на | Problem returning a cursor through ODBC to ASP layer from postgres ("david williams" <dw_remote@hotmail.com>) |
| Список | pgsql-odbc |
I have created a function in postgres called getallusers(var) that returns a cursor. This works fine at the psql level but when I try to return it through ODBC I get errors.The function is as follows:CREATE OR REPLACE FUNCTION getallusers(refcursor) RETURN refcursor AS'beginopen $1 for select * from users;return $1;end;' language 'plpgsql';I call it like this:<%
strconn="DSN=p_test;uid=postgres;pwd="
mySQL = "begin "&vbcrlf
mySQL = mySQL & "select getallusers('rs'); "
mySQL = mySQL & "fetch all in rs; "
mySQL = mySQL & "commit; "call query2table(mySQL,strconn)
%>This does not seem to return anything.
Thanks
!-------------------------------------!
David Williams
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
В списке pgsql-odbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера