Weird NULL behavior

From: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
To: PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Weird NULL behavior
Date: 2002-11-07 11:41:03
Message-ID: 20021107114103.43007.qmail@web80306.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi:

Has anyone encountered this before?
SELECT CAST ( (NULL*NULL) AS NUMERIC(2,0));


returns the following error message:
Cannot cast type '"char"' to '"numeric"'

But the following sql statements returns NULL:
select NULL:
select NULL * NULL;
select cast ( NULL as NUMERIC(2,0));

Thank you in advance,
ludwig.

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2002-11-07 11:47:46 Generating a cross tab (pivot table)
Previous Message vist 2002-11-07 09:27:58 Re: [pgsql-sql] Daily Digest V1 #983