PHP Classes

NULL-Values

Recommend this page to a friend!

      mysql_dump  >  All threads  >  NULL-Values  >  (Un) Subscribe thread alerts  
Subject:NULL-Values
Summary:NULL-Values => ''
Messages:1
Author:Christian Mehler
Date:2010-02-12 07:20:47
 

  1. NULL-Values   Reply   Report abuse  
Picture of Christian Mehler Christian Mehler - 2010-02-12 07:20:47
If there is a field with NULL-Values these are dumped as an empty field. You can easily fix it, replace the following lines from line 238:

foreach($row as $key => $value)
{
//Ergänzt, um NULL-Abfrage
if(!isset($value) && empty($value))
$row[$key] = 'NULL';
else
$row[$key] = '"'.mysql_escape_string($value).'"';
}

$returnSql .= $temp_sql.' VALUES ('.@implode(',',$row).');'.$lineEnd;