From aa7db0d36b9df1e1e0aa3d177279d8535e8c1a8d Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 7 Feb 2005 18:46:23 +0000 Subject: [PATCH] bug #1117112, commands out of sync for copy table operation --- ChangeLog | 7 +++++-- libraries/tbl_move_copy.php | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index eaf301d8d..a12c4a1b9 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,8 +6,11 @@ $Id$ $Source$ 2005-02-07 Marc Delisle - * libraries/dbi/*: PMA_DBI_free_result(): do not send a boolean - to mysqli_free_result() or mysql_free_result(), it expects a result resource + * libraries/dbi/*: bug #1116933, PMA_DBI_free_result(): + do not send a boolean to mysqli_free_result() or mysql_free_result(), + it expects a result resource + * libraries/tbl_move_copy.php: bug #1117112, commands out of sync when + using "copy table" operation 2005-02-07 Alexander M. Turek * libraries/mcrypt.lib.php: Bug #1117907 ("wrong parameter count" with diff --git a/libraries/tbl_move_copy.php b/libraries/tbl_move_copy.php index 9bd99275d..9f1d55160 100644 --- a/libraries/tbl_move_copy.php +++ b/libraries/tbl_move_copy.php @@ -48,7 +48,10 @@ function PMA_duplicate_table_info($work, $pma_table, $get_fields, $where_fields, $table_copy_query = 'SELECT ' . implode(', ', $select_parts) . ' FROM ' . PMA_backquote($cfgRelation[$pma_table]) . ' WHERE ' . implode(' AND ', $where_parts); - $table_copy_rs = PMA_query_as_cu($table_copy_query); + + // must use PMA_DBI_QUERY_STORE here, since we execute another + // query inside the loop + $table_copy_rs = PMA_query_as_cu($table_copy_query, TRUE, PMA_DBI_QUERY_STORE); while ($table_copy_row = @PMA_DBI_fetch_assoc($table_copy_rs)) { $value_parts = array();