pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: anthony@childers.com
Cc: pgsql-odbc@postgresql.org
Subject: Re: Crystal Reports 8, psqlODBC driver and stored procedures
Date: Tue, 20 Jan 2004 20:07:43 +0000
Message-ID: <200401202007.43967.dev@archonet.com> (raw)
In-Reply-To: <20040120113803.13880.h018.c000.wm@mail.childers.com.criticalpath.net>
References: <20040120113803.13880.h018.c000.wm@mail.childers.com.criticalpath.net>

On Tuesday 20 January 2004 19:38, anthony@childers.com wrote:
> Richard,
>
> Thanks for the reply.
> What I am trying to say is, does SETOF integer get returned as a single
> recordset? or is each integer returned as a separate recordset? If it is a
> single recordset, should proretset be TRUE?

SETOF integer returns a recordset containing zero or more integers. Since this 
is a SET proretset is True (the PROcedure RETurns a SET).
If you call it as SELECT * FROM function_name() then proretset should be true 
(if I understand things correctly).

> Further reading on what Crystal Reports requires can be found here:
> http://support.businessobjects.com/communityCS/TechnicalPapers/scr_oracle_s
>tored_procedures.pdf

Hmm - looks fiddly with Oracle. That bit on page 11 where it mentions the 
Database Expert dlg-box and the Stored Procedures node - PG's set returning 
functions aren't occuring there - have I got that right?

> This document is for Oracle and talks about using cursors to get the job
> done. I have tried this too but have had no luck. A DBfunction that returns
> type refcursor does not exhibit the same behavior as I described previously
> (because proretset=FALSE) but it still does not get added to the Crystal
> Report.
>
> How compatible are PG Cursors with Oracle?

What matters, I suspect is how compatible an ODBC cursor is between Oracle and 
PG. I don't know, but if Crystal just reads sequentially, I would be 
surprised if they looked *very* different from an ODBC app.

-- 
  Richard Huxton
  Archonet Ltd



view thread (6+ messages)  latest in thread

Message-ID: <200401202007.43967.dev@archonet.com>
Permalink:  ../200401202007.43967.dev@archonet.com/
Also on:    postgresql.org/message-id/200401202007.43967.dev@archonet.com

 · 

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: dev@archonet.com, anthony@childers.com
  Subject: Re: Crystal Reports 8, psqlODBC driver and stored procedures
  In-Reply-To: <200401202007.43967.dev@archonet.com>
  References: <20040120113803.13880.h018.c000.wm@mail.childers.com.criticalpath.net> <200401202007.43967.dev@archonet.com>

* 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