Fix empty BLOB export (bug #1020052).

This commit is contained in:
Michal Čihař
2004-09-01 13:40:52 +00:00
parent 1bbfdda014
commit 5b170594f6
2 changed files with 6 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2004-09-01 Michal Čihař <michal@cihar.com>
* libraries/export/sql.php: Fix empty BLOB export (bug #1020052).
2004-08-29 Marc Delisle <lem9@users.sourceforge.net>
* server_privileges.php: bug 1007870, illegal mix of collations
for operation UNION

View File

@@ -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)