Re: Why isn't that null - Mailing list pgsql-general

From Matthias Teege
Subject Re: Why isn't that null
Date
Msg-id 87zoo7jkiy.fsf@moon.mteege.de
Whole thread Raw
In response to Why isn't that null  (Matthias Teege <matthias@mteege.de>)
List pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:

[...]

> > If I change the function statement as follows:
>
> > IF NEW.vkp = 0 THEN
> >    ...
> > END IF;
>
> > it works
>
> Shouldn't that give a type error of some sort?  You didn't say
> what type vkp is, but if it's a string type then comparing it
> against a numeric shouldn't work IMHO.

no it isn't. It is a float8 type. I changed my program in
that way that the query includes NULL instead of ''.

Bis dann
Matthias


--
Matthias Teege -- matthias@mteege.de -- http://emugs.de
make world not war
PGP-Key auf Anfrage

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Limit for an transaction
Next
From: Hernan Gonzalez
Date:
Subject: puzzled by the docs