RE: [PEAR-DEV] Re: [metabase-dev] NULL

From: Date: Tue, 17 Sep 2002 11:25:47 +0000
Subject: RE: [PEAR-DEV] Re: [metabase-dev] NULL
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9108@lists.php.net to get a copy of this message
> From: Manuel Lemos [mailto:mlemos@acm.org] > Sent: Friday, September 13, 2002 7:46 AM > > if I now pass $value to one of the get*Value() methods it returns NULL > > as defined by the database. > > > > This would would break BC, but would be quite a valueable addition. > > I don't much point in that. NULL is always NULL in any SQL database. Why > do you want to have the functions to handle undefined values when they > should always return "NULL"? > Because I dont what to handle this in my application. If I want to write a given value I don't want to first check if I have to convert it to the string "NULL" or if I can use one of the get*Value() methods. Of course if it's a not null field I am writing to I will still have to handle that in my application. But that is a different issue. Regards, Lukas

« previous php.pear.dev (#9108) next »