pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: david williams <dw_remote@hotmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Problem returning a cursor through ODBC to ASP layer from postgres
Date: Tue, 17 Sep 2002 18:43:40 +0900
Message-ID: <EKEJJICOHDIEMGPNIFIJMEIDJCAA.Inoue@tpf.co.jp> (raw)
In-Reply-To: <DAV57PC5yGpgdNpC2Ng00014cde@hotmail.com>

-----Original Message-----
From: david williams

 Could you try the snapshot dll at http://w2422.nsk.ne.jp/~inoue/ ?

regards,
Hiroshi Inoue
  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'

  begin
  open $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

view thread (4+ messages)

Message-ID: <EKEJJICOHDIEMGPNIFIJMEIDJCAA.Inoue@tpf.co.jp>
Permalink:  ../EKEJJICOHDIEMGPNIFIJMEIDJCAA.Inoue@tpf.co.jp/
Also on:    postgresql.org/message-id/EKEJJICOHDIEMGPNIFIJMEIDJCAA.Inoue@tpf.co.jp

 · 

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: Inoue@tpf.co.jp, dw_remote@hotmail.com
  Subject: Re: Problem returning a cursor through ODBC to ASP layer from postgres
  In-Reply-To: <EKEJJICOHDIEMGPNIFIJMEIDJCAA.Inoue@tpf.co.jp>
  References: <DAV57PC5yGpgdNpC2Ng00014cde@hotmail.com> <EKEJJICOHDIEMGPNIFIJMEIDJCAA.Inoue@tpf.co.jp>

* 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