Remove unused PMA_myHandler().

This commit is contained in:
Michal Čihař
2004-10-20 16:31:05 +00:00
parent f91d9b9b64
commit 8ed40bb772
2 changed files with 1 additions and 21 deletions

View File

@@ -25,6 +25,7 @@ $Source$
(RFE #1012971), show just Access denied in case we denied it. (RFE #1012971), show just Access denied in case we denied it.
* db_operations.php, db_details_links.php, db_details_structure.php: * db_operations.php, db_details_links.php, db_details_structure.php:
Separate operations from structure (RFE #808029). Separate operations from structure (RFE #808029).
* tbl_move_copy.php: Remove unused PMA_myHandler().
2004-10-19 Marc Delisle <lem9@users.sourceforge.net> 2004-10-19 Marc Delisle <lem9@users.sourceforge.net>
* libraries/database_interface.lib.php: bug #1041667, correctly * libraries/database_interface.lib.php: bug #1041667, correctly

View File

@@ -9,27 +9,6 @@ require_once('./libraries/common.lib.php');
PMA_checkParameters(array('db', 'table')); PMA_checkParameters(array('db', 'table'));
/**
* Insert data from one table to another one
*
* @param string the original insert statement
*
* @global string the database name
* @global string the original table name
* @global string the target database and table names
* @global string the sql query used to copy the data
*/
function PMA_myHandler($sql_insert = '')
{
global $db, $table, $target;
global $sql_insert_data;
$sql_insert = preg_replace('~INSERT INTO (`?)' . $table . '(`?)~i', 'INSERT INTO ' . $target, $sql_insert);
$result = PMA_DBI_query($sql_insert);
$sql_insert_data .= $sql_insert . ';' . "\n";
} // end of the 'PMA_myHandler()' function
/** /**
* Inserts existing entries in a PMA_* table by reading a value from an old entry * Inserts existing entries in a PMA_* table by reading a value from an old entry
* *