diff --git a/ChangeLog b/ChangeLog index 0565276b4..bc55b56e6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ $Source$ 2003-04-17 Michal Cihar * tbl_replace_fields.php3: Fix typo. + * tbl_replace.php3: Use rather SELECT *, as selecting only BLOB causes + MySQL sometimes problems... 2003-04-17 Garvin Hicking * tbl_replace_fields.php3: Use $encoded_key instead of $key to diff --git a/tbl_replace.php3 b/tbl_replace.php3 index bd7b92bb9..c2ec5a3f7 100755 --- a/tbl_replace.php3 +++ b/tbl_replace.php3 @@ -136,17 +136,7 @@ else { // garvin: Get, if sent, any protected fields to insert them here: if (isset($fields_type) && is_array($fields_type) && isset($primary_key)) { - reset($fields_type); - - $protected_stack = array(); - while (list($key, $val) = each($fields_type)) { - if ($val == 'protected') { - $protected_stack[] = PMA_backquote(urldecode($key)); - } - } - reset($fields_type); - - $prot_local_query = 'SELECT ' . implode(', ', $protected_stack) . ' FROM ' . PMA_backquote($table) . ' WHERE ' . urldecode($primary_key); + $prot_local_query = 'SELECT * FROM ' . PMA_backquote($table) . ' WHERE ' . urldecode($primary_key); $prot_result = PMA_mysql_query($prot_local_query) or PMA_mysqlDie('', $prot_local_query, '', $err_url); $prot_row = PMA_mysql_fetch_array($prot_result); }