PHP Classes


Recommend this page to a friend!

      mysql_dump  >  All threads  >  NULL-Values  >  (Un) Subscribe thread alerts  
Summary:NULL-Values => ''
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';
$row[$key] = '"'.mysql_escape_string($value).'"';

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

For more information send a message to info at phpclasses dot org.