Re: Nulls get converted to 0 problem

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Mike Mascari <mascarm(at)mascari(dot)com>
Cc: Jon Earle <je_pgsql(at)kronos(dot)honk(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Nulls get converted to 0 problem
Date: 2003-06-09 13:17:31
Message-ID: 20030609131731.GB32692@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 06, 2003 at 01:34:16PM -0400, Mike Mascari wrote:
> There also isn't any notion of typed NULLs. At least the C++ example
> has a zero-initialized pointer to a type.

Dunno about the rest but this is false. NULLs can be typed:

# select null::int4 as f into temp a;
SELECT
# \d a
Table "pg_temp_1.a"
Column | Type | Modifiers
--------+---------+-----------
f | integer |

Not that it usually matters.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> "the West won the world not by the superiority of its ideas or values or
> religion but rather by its superiority in applying organized violence.
> Westerners often forget this fact, non-Westerners never do."
> - Samuel P. Huntington

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Houssay 2003-06-09 13:30:33 SQL question
Previous Message Kallol Nandi 2003-06-09 12:55:09 DBCS