Invalid SQL on empty table export (bug #939918).

This commit is contained in:
Michal Čihař
2004-04-22 13:12:32 +00:00
parent af8ebced63
commit a11bf5f2df
2 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2004-04-22 Michal Cihar <michal@cihar.com>
* libraries/export/sql.php: Invalid SQL on empty table export (bug
#939918).
2004-04-21 Marc Delisle <lem9@users.sourceforge.net> 2004-04-21 Marc Delisle <lem9@users.sourceforge.net>
### 2.6.0-alpha1 released ### 2.6.0-alpha1 released
* (after the release) user_password.php: undefined offset in blowfish.php * (after the release) user_password.php: undefined offset in blowfish.php

View File

@@ -567,7 +567,9 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
if (!PMA_exportOutputHandler(($current_row == 1 ? '' : $separator . $crlf) . $insert_line)) return FALSE; if (!PMA_exportOutputHandler(($current_row == 1 ? '' : $separator . $crlf) . $insert_line)) return FALSE;
} // end while } // end while
if (!PMA_exportOutputHandler(';' . $crlf)) return FALSE; if ($current_row > 0) {
if (!PMA_exportOutputHandler(';' . $crlf)) return FALSE;
}
} // end if ($result != FALSE) } // end if ($result != FALSE)
PMA_DBI_free_result($result); PMA_DBI_free_result($result);