Fix empty BLOB export (bug #1020052).
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user