Re: [GENERAL] Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string and identifier...

Поиск
Список
Период
Сортировка
От Francisco Figueiredo Jr.
Тема Re: [GENERAL] Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string and identifier...
Дата
Msg-id AANLkTin2n5P9yKER+REVQM7R511JqsaO7hKiGVBRacPA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string andidentifier...  (Andreas Kretschmer <akretschmer@spamfence.net>)
Ответы Re: Re: [GENERAL] Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string andidentifier...  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-general
This is the query our user sent as one of the problems:

select "zurück" as zurück3_103_ from "Tabelle" tabellenhib0_

And here is the link to our bug report:

http://pgfoundry.org/tracker/index.php?func=detail&aid=1010988&group_id=1000140&atid=590


I didn't test putting double quotes in the column name identifier as
the bug report isn't using it.

What happens if you remove the double quotes in the column name identifier?

Thanks in advance.



On Tue, Mar 15, 2011 at 15:21, Andreas Kretschmer
<akretschmer@spamfence.net> wrote:
> Francisco Figueiredo Jr. <francisco@npgsql.org> wrote:
>
>> Hi all!
>>
>> I received a bug report about problems with identifiers.
>>
>> If I do the following select:
>>
>> select 1 as tést
>>
>> The column name returned contains strange chars.
>>
>> If I do:
>>
>> select 'tést' as tést
>>
>> the select value returned is ok but the column name is not. :(
>>
>> Is there any configuration I need to change to specify the encoding of
>> the identifiers?
>
> test=# select 'tést' as "tést";
>  tést
> ------
>  tést
>
> looks okay for me ...
>
>
> Andreas
> --
> Really, I'm not out to destroy Microsoft. That will just be a completely
> unintentional side effect.                              (Linus Torvalds)
> "If I was god, I would recompile penguin with --enable-fly."   (unknown)
> Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



--
Regards,

Francisco Figueiredo Jr.
Npgsql Lead Developer
http://www.npgsql.org
http://fxjr.blogspot.com
http://twitter.com/franciscojunior

В списке pgsql-general по дате отправления:

Предыдущее
От: "C. Bensend"
Дата:
Сообщение: Re: How to add hosts to pg_hba.conf and postgresql.conf?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: How to add hosts to pg_hba.conf and postgresql.conf?