Re: quote and NULL
| From: | Chuck Hagenbuch | Date: | Wed, 29 Aug 2001 14:03:25 +0000 |
| Subject: | Re: quote and NULL | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1716@lists.php.net to get a copy of this message | ||
Quoting "Tomas V.V.Cox" <cox@idecnet.com>:
> Is there any problem if DB::quote by default return the NULL string
> also when the value is '' (now it returns NULL only when $var ===
> null) ?
'' and NULL are _very_ different things in SQL. Please don't do this.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
Some fallen angels have their good reasons.