Re: Brio returning data through stored procedures.

Поиск
Список
Период
Сортировка
От Andreas
Тема Re: Brio returning data through stored procedures.
Дата
Msg-id 46165001.9070608@gmx.net
обсуждение исходный текст
Ответ на Re: Brio returning data through stored procedures.  (David Gardner <david.gardner@yucaipaco.com>)
Список 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 по дате отправления:

Предыдущее
От: Ludek Finstrle
Дата:
Сообщение: Re: large Objects through ODBC/ADO
Следующее
От: "Doug Thom"
Дата:
Сообщение: Re: Brio returning data through stored procedures.