X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BA7C5D1EA01 for ; Tue, 20 Jan 2004 20:49:16 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 33975-06 for ; Tue, 20 Jan 2004 16:48:47 -0400 (AST) Received: from anchor-post-37.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by svr1.postgresql.org (Postfix) with ESMTP id 9C9F4D1CA65 for ; Tue, 20 Jan 2004 16:07:49 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-37.mail.demon.net with esmtp (Exim 3.35 #1) id 1Aj2A9-000Hjj-0b; Tue, 20 Jan 2004 20:07:49 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id A546716357; Tue, 20 Jan 2004 20:07:43 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 52A0816314; Tue, 20 Jan 2004 20:07:41 +0000 (GMT) From: Richard Huxton To: anthony@childers.com Subject: Re: Crystal Reports 8, psqlODBC driver and stored procedures Date: Tue, 20 Jan 2004 20:07:43 +0000 User-Agent: KMail/1.5 Cc: pgsql-odbc@postgresql.org References: <20040120113803.13880.h018.c000.wm@mail.childers.com.criticalpath.net> In-Reply-To: <20040120113803.13880.h018.c000.wm@mail.childers.com.criticalpath.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401202007.43967.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/64 X-Sequence-Number: 3693 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