Re: : Postgres order by into a RECORD, not ordering

From: Shaun Clements <ShaunC(at)relyant(dot)co(dot)za>
To: 'Richard Huxton' <dev(at)archonet(dot)com>, 'PostgreSQL General' <pgsql-general(at)postgresql(dot)org>
Subject: Re: : Postgres order by into a RECORD, not ordering
Date: 2005-04-01 10:36:53
Message-ID: 100F78F2B203444BB161BBA7077FF6131CD9DC@srldbexc003.relyant.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

RESOLVED.

It must be a bug in 7.3
I resolved the problem, by changing the FOR IN statement to FOR IN EXECUTE.
By changing the Statement into a string, it accommodated for the ORDER BY.

Thanks for all your responses.

Kind Regards,
Shaun Clements

-----Original Message-----
From: Shaun Clements
Sent: 01 April 2005 12:22 PM
To: 'Richard Huxton'
Cc: PostgreSQL General
Subject: RE: : [GENERAL] Postgres order by into a RECORD, not ordering

Hi Again.

I hope you can explain this.
I have a stored procedure which does a query of a table using order by, into
a RECORD.
The statement I mentioned earlier, is a FOR IN.
the data stored into the RECORD, is not ordered by the columns specified,
because when I loop through the record, the columns returned in the row are
different, to when I manually do a Select query using order by.
I assumed this may have something to do with the index.

Is there any reason why this is so ?

Kind Regards,
Shaun Clements

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Miguel Angel Tribaldos Hervas 2005-04-01 10:42:19 inherited type
Previous Message Alban Hertroys 2005-04-01 10:32:47 Re: Temporary Tables