Re: DataObject null values
| From: | Alan Knowles | Date: | Tue, 19 Aug 2003 02:44:02 +0000 |
| Subject: | Re: DataObject null values | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7286@lists.php.net to get a copy of this message | ||
have a read of php-dev - nulls are very messy with PHP.. :)
$object->somevalue = 'null';
will translate to = NULL or somevalue IS NULL, when you write/search the database.. - reading from the database is dependant on PEAR's DB layer.. - which in turn I presume depends on the database binding..
Regards
Alan
Limbourg Arnaud wrote:
Hi, When using dataobject i noticed a weird behaviour, when using toArray or setFrom null values in the database are converted to an empty string. Is it on purpose ? How can i then make a difference with null and an empty string ? Thaks, Arnaud.