diff --git a/ChangeLog b/ChangeLog index 27727bfe6..2157b1662 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2004-08-23 Michal Čihař * scripts/create-release.sh: Support for snapshots outside sourceforge. + * libraries/export/sql.php: Fix exporting of TIMESTAMP (bug #1013730). 2004-08-22 Michal Čihař * sql.php: Don't unset $sql_limit_to_append, we need it later (bug diff --git a/libraries/export/sql.php b/libraries/export/sql.php index 93b6db9d9..dce1a6143 100644 --- a/libraries/export/sql.php +++ b/libraries/export/sql.php @@ -523,7 +523,8 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) if (!isset($row[$j]) || is_null($row[$j])) { $values[] = 'NULL'; // a number - } elseif ($fields_meta[$j]->numeric) { + // timestamp is numeric on some MySQL 4.1 + } elseif ($fields_meta[$j]->numeric && $fields_meta[$j]->type != 'timestamp') { $values[] = $row[$j]; // a binary field // Note: with mysqli, under MySQL 4.1.3, we get the flag