diff --git a/ChangeLog b/ChangeLog index 3fa7082c1..ece49d117 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-09-01 Michal Čihař + * libraries/export/sql.php: Fix empty BLOB export (bug #1020052). + 2004-08-29 Marc Delisle * server_privileges.php: bug 1007870, illegal mix of collations for operation UNION diff --git a/libraries/export/sql.php b/libraries/export/sql.php index dce1a6143..4461f5fac 100644 --- a/libraries/export/sql.php +++ b/libraries/export/sql.php @@ -526,6 +526,9 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) // timestamp is numeric on some MySQL 4.1 } elseif ($fields_meta[$j]->numeric && $fields_meta[$j]->type != 'timestamp') { $values[] = $row[$j]; + // handle empty string special way, just to speed up things and to catch empty BLOBs + } elseif (empty($row[$j])) { + $values[] = '\'\''; // a binary field // Note: with mysqli, under MySQL 4.1.3, we get the flag // "binary" for a datetime (I don't know why)