Fix export of '0' strings (bug #990398).

This commit is contained in:
Michal Čihař
2004-07-15 15:26:34 +00:00
parent 3a558d153a
commit 9fc1e14f3a
2 changed files with 2 additions and 3 deletions

View File

@@ -13,6 +13,8 @@ $Source$
* tbl_properties_export.php: In case we don't need to reconstruct complete
query just drop LIMIT part (workaround for bug #955175 and should fix
bug #990724).
* libraries/export/sql.php: Fix export of '0' strings (bug #990398).
2004-07-15 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php: bug 990959, undefined index for DATETIME

View File

@@ -566,9 +566,6 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
// a number
} elseif ($fields_meta[$j]->numeric) {
$values[] = $row[$j];
// empty string
} elseif (empty($row[$j])) {
$values[] = '\'\'';
// a binary field
} else if (stristr($field_flags[$j], 'BINARY') && isset($GLOBALS['hexforbinary'])) {
$values[] = '0x' . bin2hex($row[$j]);