bug #1688053 [export] Wrong export of binary character fields

This commit is contained in:
Marc Delisle
2007-03-26 16:48:13 +00:00
parent 9f9da6d7ac
commit 4de60460b3
2 changed files with 7 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #1614004 [relation] foreign key spanning multiple columns are
incorrectly displayed
- bug #1681598 [interface] Edit next row
- bug #1688053 [export] Wrong export of binary character fields
+ [core] added PMA_fatalError() and made use of it
. [core] added PMA_isValid() and PMA_ifSetOr() for variable handling
. [i18n] use generic $strOptions

View File

@@ -844,7 +844,12 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
if (empty($row[$j]) && $row[$j] != '0') {
$values[] = '\'\'';
} else {
if ($fields_meta[$j]->blob) {
$values[] = '0x' . bin2hex($row[$j]);
// to support for example a latin1_bin
} else {
$values[] = 'CONVERT(0x' . bin2hex($row[$j]) . ' USING UTF8)';
}
}
// something else -> treat as a string
} else {