Re: char columns, space padding, and the "like" operator

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: char columns, space padding, and the "like" operator
Дата
Msg-id 10866.1233621826@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: char columns, space padding, and the "like" operator  ("Haszlakiewicz, Eric" <EHASZLA@transunion.com>)
Список pgsql-interfaces
"Haszlakiewicz, Eric" <EHASZLA@transunion.com> writes:
>> Cast the char(n) column to text or varchar, and it should work more
>> like you're expecting.

> Yeah, I figured that much.  I was hoping for a connection-wide or
> database-wide setting, so I wouldn't have to go change all my SQL
> statements.

Well, you could experiment with removing the char(n) variant of the ~~
operator, but if it breaks you get to keep both pieces.
        regards, tom lane


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

Предыдущее
От: "Haszlakiewicz, Eric"
Дата:
Сообщение: Re: char columns, space padding, and the "like" operator
Следующее
От: Bob Henkel
Дата:
Сообщение: C Stored Function with ECPG