Re: char(0)

Поиск
Список
Период
Сортировка
От Susanne Ebrecht
Тема Re: char(0)
Дата
Msg-id 4E9D8F6D.6030300@2ndQuadrant.com
обсуждение исходный текст
Ответ на Re: char(0)  (Andreas Pflug <pgadmin@pse-consulting.de>)
Ответы Re: char(0)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On 17.10.2011 16:41, Andreas Pflug wrote:
> Am 17.10.11 10:53, schrieb Thomas Kellerer:
>> Susanne Ebrecht, 17.10.2011 09:31:
>>> Hello,
>>>
>>> I couldn't find that somebody already mentioned it.
>>>
>>> PostgreSQL isn't supporting CHAR(0).
>>>
>>> An empty string has a length of 0.
>>>
>>> CHAR(0) can have two values: NULL and empty string.
>>>
>>> In MySQL it is very common to simulate not null boolean
>>> by using CHAR(0).
>>>
>>> This is a little bit annoying on migration topics.
>> While not move on to a cleaner approach during the migration and use a
>> "boolean not null"?
> Sounds much too straight forward, not mysql-ish artistic enough...

Depends if you want / are able to touch the application source code or not.

Susanne

--
Susanne Ebrecht - 2ndQuadrant
PostgreSQL Development, 24x7 Support, Training and Services
www.2ndQuadrant.com

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

Предыдущее
От: Robert Young
Дата:
Сообщение: incompatible pointer type
Следующее
От: Sachin Srivastava
Дата:
Сообщение: Re: BUG #6260: not accept password