Fix exporting of TIMESTAMP (bug #1013730).

This commit is contained in:
Michal Čihař
2004-08-23 13:59:32 +00:00
parent 2fe2b8a270
commit dea219c4a2
2 changed files with 3 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2004-08-23 Michal Čihař <michal@cihar.com>
* scripts/create-release.sh: Support for snapshots outside sourceforge.
* libraries/export/sql.php: Fix exporting of TIMESTAMP (bug #1013730).
2004-08-22 Michal Čihař <michal@cihar.com>
* sql.php: Don't unset $sql_limit_to_append, we need it later (bug

View File

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