pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
problem with getting return type mismatch from function
3+ messages / 3 participants
[nested] [flat]

* problem with getting return type mismatch from function
@ 2003-12-18 02:44  Jackson, Harold <harold.jackson@attws.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Jackson, Harold @ 2003-12-18 02:44 UTC (permalink / raw)
  To: pgsql-docs

Hi,  
    I'm having a problem with a function that I'm trying to create.  I
created a data type that is composed of fields from 2 different tables.
When I create SQL functions this seems to work just  fine.  However,
when I try to use this data type in a plpgsql function, I get the error
message
" return type mismatch in function returning tuple at or near
"type_name"". No way is what I created a tuple.  We're running
PostgreSQL 7.3.2 on Red Hat Linux.  Any ideas? 
 

Harold A. Jackson

DBA

NDCO

AT&T Wireless Services

(425)288-3485 (desk)

(425)241-8092 (cell)

harold.jackson@attws.com

 

  

 

Attachments:

TechTool.gif (image/gif, 2.0K) download view image
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: problem with getting return type mismatch from function
@ 2003-12-18 09:06  Peter Eisentraut <peter_e@gmx.net>
  parent: Jackson, Harold <harold.jackson@attws.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2003-12-18 09:06 UTC (permalink / raw)
  To: harold.jackson@attws.com; +Cc: pgsql-docs

Jackson, Harold writes:
> Any ideas?

No.  This list is for discussing documentation issues.






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: problem with getting return type mismatch from function
@ 2003-12-19 14:53  Richard Huxton <dev@archonet.com>
  parent: Jackson, Harold <harold.jackson@attws.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Richard Huxton @ 2003-12-19 14:53 UTC (permalink / raw)
  To: Jackson, Harold <harold.jackson@attws.com>; pgsql-docs

On Thursday 18 December 2003 02:44, Jackson, Harold wrote:
> Hi,
>     I'm having a problem with a function that I'm trying to create.  I
> created a data type that is composed of fields from 2 different tables.
> When I create SQL functions this seems to work just  fine.  However,
> when I try to use this data type in a plpgsql function, I get the error
> message
> " return type mismatch in function returning tuple at or near
> "type_name"". No way is what I created a tuple.  We're running
> PostgreSQL 7.3.2 on Red Hat Linux.  Any ideas?

To expand on Peter's note - try the general or sql lists. You'll need to 
supply the code from the function too, otherwise no-one can help.

-- 
  Richard Huxton
  Archonet Ltd



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-12-19 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-18 02:44 problem with getting return type mismatch from function Jackson, Harold <harold.jackson@attws.com>
2003-12-18 09:06 ` Peter Eisentraut <peter_e@gmx.net>
2003-12-19 14:53 ` Richard Huxton <dev@archonet.com>

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