bug #1117112, commands out of sync for copy table operation

This commit is contained in:
Marc Delisle
2005-02-07 18:46:23 +00:00
parent 9952637828
commit aa7db0d36b
2 changed files with 9 additions and 3 deletions

View File

@@ -6,8 +6,11 @@ $Id$
$Source$ $Source$
2005-02-07 Marc Delisle <lem9@users.sourceforge.net> 2005-02-07 Marc Delisle <lem9@users.sourceforge.net>
* libraries/dbi/*: PMA_DBI_free_result(): do not send a boolean * libraries/dbi/*: bug #1116933, PMA_DBI_free_result():
to mysqli_free_result() or mysql_free_result(), it expects a result resource 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 <me@derrabus.de> 2005-02-07 Alexander M. Turek <me@derrabus.de>
* libraries/mcrypt.lib.php: Bug #1117907 ("wrong parameter count" with * libraries/mcrypt.lib.php: Bug #1117907 ("wrong parameter count" with

View File

@@ -48,7 +48,10 @@ function PMA_duplicate_table_info($work, $pma_table, $get_fields, $where_fields,
$table_copy_query = 'SELECT ' . implode(', ', $select_parts) $table_copy_query = 'SELECT ' . implode(', ', $select_parts)
. ' FROM ' . PMA_backquote($cfgRelation[$pma_table]) . ' FROM ' . PMA_backquote($cfgRelation[$pma_table])
. ' WHERE ' . implode(' AND ', $where_parts); . ' 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)) { while ($table_copy_row = @PMA_DBI_fetch_assoc($table_copy_rs)) {
$value_parts = array(); $value_parts = array();