Skip site navigation (1) Skip section navigation (2)

Re: char(0)

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: char(0)
Date: 2011-10-17 08:53:30
Message-ID: j7gqct$vgm$1@dough.gmane.org (view raw or flat)
Thread:
Lists: pgsql-bugs
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"?

Thomas



In response to

  • char(0) at 2011-10-17 07:31:46 from Susanne Ebrecht

Responses

  • Re: char(0) at 2011-10-17 14:41:24 from Andreas Pflug

pgsql-bugs by date

Next:From: Susanne EbrechtDate: 2011-10-17 12:28:14
Subject: Re: char(0)
Previous:From: Simon RiggsDate: 2011-10-17 08:30:40
Subject: Re: char(0)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group