Re: casting in ORDER BY

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: casting in ORDER BY
Date: 2009-02-15 21:20:13
Message-ID: 1234732813.13107.25.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Tom Lane píše v ne 15. 02. 2009 v 15:51 -0500:
> Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> writes:
> > I try to fix foreign_data regression test for Czech locale (HEAD). For
> > example I replaced
> > SELECT * FROM information_schema.user_mapping_options ORDER BY 1, 2, 3,
> > 4;
> > with following statement:
> > SELECT * FROM information_schema.user_mapping_options ORDER BY 1, 2,
> > 3::name, 4;
>
> That means something like '3'::name, ie it's a constant. You'd need
> to reference the actual column name.

I see, thanks.

> regards, tom lane
>
> PS: I'm still of the opinion that it's a bad idea to commit to keeping
> all the regression tests independent of whether digits sort before
> or after letters.

It is not about how digits are sort, but if we will support "all" locale
for regression tests or not. Maybe add directory like
regress/expected/cs_CZ and put variant here. It should help to avoid
misinterpretation in case when result is not valid for other locale.

Zdenek

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Chernow 2009-02-16 01:31:44 Re: PQinitSSL broken in some use casesf
Previous Message Tom Lane 2009-02-15 21:07:25 Re: PQinitSSL broken in some use casesf