bug #2280904 [export] do not include view name in export

This commit is contained in:
Michal Čihař
2008-11-28 12:28:49 +00:00
parent 93a8c92a14
commit 597135d273
2 changed files with 18 additions and 12 deletions

View File

@@ -10,6 +10,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
thanks to Martin Stricker - martinstricker
- bug #2186823 [core] bad session.save_path not detected
- bug #2202709 [core] Re-login causes PMA to forget current table name
- bug #2280904 [export] do not include view name in export
3.1.0.0 (not yet released)
+ [auth] Support for Swekey hardware authentication,

View File

@@ -518,7 +518,12 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false, $a
// Note: SHOW CREATE TABLE, at least in MySQL 5.1.23, does not
// produce a displayable result for the default value of a BIT
// field, nor does the mysqldump command. See MySQL bug 35796
$result = PMA_DBI_try_query('SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table));
/*
* We have to select database and not use database name in SHOW CREATE,
* otherwise CREATE statement can include database name.
*/
PMA_DBI_select_db($db);
$result = PMA_DBI_try_query('SHOW CREATE TABLE ' . PMA_backquote($table));
// an error can happen, for example the table is crashed
$tmp_error = PMA_DBI_getError();
if ($tmp_error) {