Fix exporting of TIMESTAMP (bug #1013730).
This commit is contained in:
@@ -7,6 +7,7 @@ $Source$
|
|||||||
|
|
||||||
2004-08-23 Michal Čihař <michal@cihar.com>
|
2004-08-23 Michal Čihař <michal@cihar.com>
|
||||||
* scripts/create-release.sh: Support for snapshots outside sourceforge.
|
* 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>
|
2004-08-22 Michal Čihař <michal@cihar.com>
|
||||||
* sql.php: Don't unset $sql_limit_to_append, we need it later (bug
|
* sql.php: Don't unset $sql_limit_to_append, we need it later (bug
|
||||||
|
@@ -523,7 +523,8 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
|
|||||||
if (!isset($row[$j]) || is_null($row[$j])) {
|
if (!isset($row[$j]) || is_null($row[$j])) {
|
||||||
$values[] = 'NULL';
|
$values[] = 'NULL';
|
||||||
// a number
|
// 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];
|
$values[] = $row[$j];
|
||||||
// a binary field
|
// a binary field
|
||||||
// Note: with mysqli, under MySQL 4.1.3, we get the flag
|
// Note: with mysqli, under MySQL 4.1.3, we get the flag
|
||||||
|
Reference in New Issue
Block a user