Re: Brio returning data through stored procedures. - Mailing list pgsql-odbc

From Andreas
Subject Re: Brio returning data through stored procedures.
Date
Msg-id 46165001.9070608@gmx.net
Whole thread Raw
In response to Re: Brio returning data through stored procedures.  (David Gardner <david.gardner@yucaipaco.com>)
List pgsql-odbc
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
> .....


pgsql-odbc by date:

Previous
From: Ludek Finstrle
Date:
Subject: Re: large Objects through ODBC/ADO
Next
From: "Doug Thom"
Date:
Subject: Re: Brio returning data through stored procedures.