dbTalk Databases Forums  

[BUGS] BUG #2230: cannot return a setof column referenced types

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2230: cannot return a setof column referenced types in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Murat Tasan
 
Posts: n/a

Default [BUGS] BUG #2230: cannot return a setof column referenced types - 02-01-2006 , 08:34 AM







The following bug has been logged online:

Bug reference: 2230
Logged by: Murat Tasan
Email address: murat.tasan (AT) cwru (DOT) edu
PostgreSQL version: 8.1.2
Operating system: Mac OS 10.4.4
Description: cannot return a setof column referenced types
Details:

Hi, I already heard from Tom Lane that this is a grammar oversight, and I
suspect it is a fairly easy fix... but to be somewhat formal I figured I'll
go ahead and fill the report:

During function creation, one cannot combine both SETOF and %TYPE.

For example:

CREATE FUNCTION temp_function() RETURNS SETOF table.column%TYPE AS %%
function_definition_here %% LANGUAGE SQL;

fails.

FYI.

Cheers!

Murat

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2230: cannot return a setof column referenced types - 02-01-2006 , 09:22 AM






"Murat Tasan" <murat.tasan (AT) cwru (DOT) edu> writes:
Quote:
During function creation, one cannot combine both SETOF and %TYPE.
Fixed here:
http://archives.postgresql.org/pgsql...1/msg00396.php

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.