pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Weird NULL behavior
Date: Thu, 7 Nov 2002 03:41:03 -0800 (PST)
Message-ID: <20021107114103.43007.qmail@web80306.mail.yahoo.com> (raw)

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



view thread (5+ messages)  latest in thread

Message-ID: <20021107114103.43007.qmail@web80306.mail.yahoo.com>
Permalink:  ../20021107114103.43007.qmail@web80306.mail.yahoo.com/
Also on:    postgresql.org/message-id/20021107114103.43007.qmail@web80306.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lud_nowhere_man@yahoo.com
  Subject: Re: Weird NULL behavior
  In-Reply-To: <20021107114103.43007.qmail@web80306.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox