From 31c2578c6f8a3274654ae048875ac31cf0401712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 21 Mar 2003 14:16:15 +0000 Subject: [PATCH] fixed copying of table --- ChangeLog | 2 ++ libraries/sqlparser.lib.php3 | 2 +- tbl_move_copy.php3 | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b146e1073..1c5fefcb1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -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 * lang/hebrew update, thanks to Yuval Sarna diff --git a/libraries/sqlparser.lib.php3 b/libraries/sqlparser.lib.php3 index c0bf03bb5..89ea455b2 100644 --- a/libraries/sqlparser.lib.php3 +++ b/libraries/sqlparser.lib.php3 @@ -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 = ''; diff --git a/tbl_move_copy.php3 b/tbl_move_copy.php3 index f58eed4b2..838066fba 100644 --- a/tbl_move_copy.php3 +++ b/tbl_move_copy.php3 @@ -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