fixed copying of table

This commit is contained in:
Michal Čihař
2003-03-21 14:16:15 +00:00
parent 5ed6994a63
commit 31c2578c6f
3 changed files with 4 additions and 2 deletions

View File

@@ -14,6 +14,8 @@ $Source$
to sql.php3.
* libraries/display_export.lib.php3: Again fixed selecting table/db
filename template.
* tbl_move_copy.php3, libraries/sqlparser.lib.php3: Fixed copying of
table.
2003-03-20 Marc Delisle <lem9@users.sourceforge.net>
* lang/hebrew update, thanks to Yuval Sarna

View File

@@ -1396,7 +1396,7 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
break;
case 'query_only':
$str = '';
$html_line_break = ' ';
$html_line_break = "\n";
break;
case 'text':
$str = '';

View File

@@ -141,7 +141,7 @@ if (isset($new_name) && trim($new_name) != '') {
$sql_structure = PMA_getTableDef($db, $table, "\n", $err_url);
$parsed_sql = PMA_SQP_parse($sql_structure);
// no need to PMA_backquote()
$parsed_sql[2]['data'] = $target;
$parsed_sql[9]['data'] = $target;
$sql_structure = PMA_SQP_formatHtml($parsed_sql, 'query_only');
// do not create the table if dataonly