note 34812 deleted from function.pg-insert by didou
| From: | didou@php.net | Date: | Thu, 07 Aug 2003 12:45:40 +0000 |
| Subject: | note 34812 deleted from function.pg-insert by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53567@lists.php.net to get a copy of this message | ||
Note Submitter: kuka.vaan@tuolla.net
----
Note to the previous note by "rorezende at hotmail dot com" :
pg_convert is propably supposed to convert null values as to nulls as well, so your hand made
"pg_insert" should check for them also.
For example the latter else could be written as follows:
if($value == null)
{
$str .= "null,";
}
else
{
$str .= "$value,";
}
Otherwise a lot better coded than my version was. ;)