Re: NULLIF problem - Mailing list pgsql-sql

From Michael Glaesemann
Subject Re: NULLIF problem
Date
Msg-id B98CA260-7332-4DB5-B4CF-462B5FB2C71D@seespotcode.net
Whole thread Raw
In response to Re: NULLIF problem  (Erik Jones <erik@myemma.com>)
List pgsql-sql
On Nov 28, 2007, at 14:00 , Erik Jones wrote:

> Why not just:
>
> UPDATE table
> SET mytime=NULL
> WHERE mytime='';

If mytime is a timestamp field, it won't have any values ''. I  
believe the OP is updating mytime to a client-supplied value which is  
passing '' when it probably means NULL.

Michael Glaesemann
grzm seespotcode net




pgsql-sql by date:

Previous
From: "Gera Mel Handumon"
Date:
Subject: Re: NULLIF problem
Next
From: "Christian Kindler"
Date:
Subject: statement-level trigger sample out there?