pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas <maps.on@gmx.net>
To: pgsql-odbc@postgresql.org
Cc: Doug Thom <dthom@iagr.net>
Subject: Re: Brio returning data through stored procedures.
Date: Fri, 06 Apr 2007 15:49:53 +0200
Message-ID: <46165001.9070608@gmx.net> (raw)
In-Reply-To: <4615915B.2000305@yucaipaco.com>
References: <A9D51A18173BD043BC843DAFB9CA48EC9A79F4@VMAIL.iagr.net>
	<4615915B.2000305@yucaipaco.com>

Hi Doug

I dont know Brio either but keep in mind that tables and views are 
allready defined types which you could use here.

So if your procedure just selects a few rows from a view or table but 
should return all collumns from the source you don't have to define a 
return type.


David Gardner schrieb:
> Never worked with Brio, but have you defined a data-type in pgsql that 
> your function would be returning? Something like:
>
> CREATE TYPE "myType" AS
> ("name" text,
> "start" timestamp without time zone,
> "end" timestamp without time zone,
> error text);
> ALTER TYPE "myType" OWNER TO "me";
>
> then the function definition would start off like:
> CREATE OR REPLACE FUNCTION "getData"()
> RETURNS SETOF "myType" AS
> ..... 




view thread (9+ messages)  latest in thread

Message-ID: <46165001.9070608@gmx.net>
Permalink:  ../46165001.9070608@gmx.net/
Also on:    postgresql.org/message-id/46165001.9070608@gmx.net

 · 

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: maps.on@gmx.net, dthom@iagr.net
  Subject: Re: Brio returning data through stored procedures.
  In-Reply-To: <46165001.9070608@gmx.net>
  References: <A9D51A18173BD043BC843DAFB9CA48EC9A79F4@VMAIL.iagr.net> <4615915B.2000305@yucaipaco.com> <46165001.9070608@gmx.net>

* 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