Exporting a database with one table from the "database details" page doesn't export the table
This commit is contained in:
@@ -26,6 +26,8 @@ $Source$
|
|||||||
* db_details*.php3; mult_submits.inc.php3; sql.php3: splitted the large
|
* db_details*.php3; mult_submits.inc.php3; sql.php3: splitted the large
|
||||||
"database details" page in parts.
|
"database details" page in parts.
|
||||||
* tbl_properties_links.php3: optimized (less server work).
|
* tbl_properties_links.php3: optimized (less server work).
|
||||||
|
* tbl_dump.php3, lines 308-309: exporting a database with one table from
|
||||||
|
the "database details" page doesn't export the table.
|
||||||
|
|
||||||
2002-04-30 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2002-04-30 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* lang/italian.inc.php3: updated thanks to Pietro Danesi.
|
* lang/italian.inc.php3: updated thanks to Pietro Danesi.
|
||||||
|
@@ -190,7 +190,7 @@ if (!isset($table)) {
|
|||||||
if ($num_tables == 0) {
|
if ($num_tables == 0) {
|
||||||
echo '# ' . $strNoTablesFound;
|
echo '# ' . $strNoTablesFound;
|
||||||
}
|
}
|
||||||
// At least on table -> do the work
|
// At least one table -> do the work
|
||||||
else {
|
else {
|
||||||
// No csv or xml format -> add some comments at the top
|
// No csv or xml format -> add some comments at the top
|
||||||
if ($what != 'csv' && $what != 'excel' && $what != 'xml') {
|
if ($what != 'csv' && $what != 'excel' && $what != 'xml') {
|
||||||
@@ -305,7 +305,8 @@ else {
|
|||||||
if (!isset($single)) {
|
if (!isset($single)) {
|
||||||
$table = mysql_tablename($tables, $i);
|
$table = mysql_tablename($tables, $i);
|
||||||
}
|
}
|
||||||
if ((isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $table . '|')) || isset($single)) {
|
if ((isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $table . '|'))
|
||||||
|
|| !empty($table)) {
|
||||||
$dump_buffer .= PMA_getTableXML($db, $table, $crlf, $err_url) . $crlf;
|
$dump_buffer .= PMA_getTableXML($db, $table, $crlf, $err_url) . $crlf;
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
|
Reference in New Issue
Block a user