Re: BUG #6020: Wrong data type returned after CAST in FROM - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #6020: Wrong data type returned after CAST in FROM
Date
Msg-id 3339.1305138461@sss.pgh.pa.us
Whole thread Raw
In response to BUG #6020: Wrong data type returned after CAST in FROM  ("Skylar Hawk" <skylar.j.hawk@gmail.com>)
Responses Re: BUG #6020: Wrong data type returned after CAST in FROM
List pgsql-bugs
Skylar Hawk <skylar.j.hawk@gmail.com> writes:
> My apologies too. Now that I look at it I wasn't accurately describing
> how I was doing things after all. In the script I do pass on the data
> I get back from that query into another function, but after looking
> again, it looks like I have the script pull the data from this query
> and then push it into another query instead of having the database do
> it. Sorry for the excess frustration it probably caused.

Well, the main point here seems to be that you've got a function
returning record, not just a scalar value which is what your initial
example suggested.  I've been able to duplicate the error and confirm
that the behavior changed in 9.0, but have not yet tracked down why.
More news as it develops ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #6020: Wrong data type returned after CAST in FROM
Next
From: Marc Cousin
Date:
Subject: collation problem on 9.1-beta1