Re: nvarchar notation accepted?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: nvarchar notation accepted?
Дата
Msg-id 13535.1273809636@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: nvarchar notation accepted?  (Jaime Casanova <jaime@2ndquadrant.com>)
Ответы Re: nvarchar notation accepted?  (Jaime Casanova <jaime@2ndquadrant.com>)
Список pgsql-hackers
Jaime Casanova <jaime@2ndquadrant.com> writes:
> On Thu, May 13, 2010 at 10:52 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Actually, the lexer translates N'foo' to NCHAR 'foo' and then the
>> grammar treats that just like CHAR 'foo'.  In short, the N doesn't do
>> anything very useful, and it certainly doesn't have any effect on
>> encoding behavior.  I think this is something Tom Lockhart put in ten or
>> so years back, and never got as far as making it actually do anything
>> helpful.

> so, the N'' syntax is fine and i don't need to hunt them as a migration step?

As long as the implied cast to char(n) doesn't cause you problems, it's
fine.
        regards, tom lane


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: nvarchar notation accepted?
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: nvarchar notation accepted?