Skip to content

Commit

Permalink
RENAME DATABASE removed in 5.1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Apr 12, 2008
1 parent 2b65e74 commit efdc60c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions db_operations.php
Expand Up @@ -40,12 +40,11 @@
(isset($create_database_before_copying) && $create_database_before_copying)) {
/**
* @todo activate this with the correct version of MySQL
* when they fix the problem when the db contains a VIEW
* (problem exists in 5.1.20)
* also, in 6.0.0 when the db contains a Falcon table,
* renaming it results in a unusable db!
* if/when they offer this functionality
*
* Note: RENAME DATABASE was removed in 5.1.23
*/
//if (PMA_MYSQL_INT_VERSION >= 50107) {
//if (PMA_MYSQL_INT_VERSION >= XYYZZ) {
// $local_query = 'RENAME DATABASE ' . PMA_backquote($db) . ' TO ' . PMA_backquote($newname) . ';';
// $sql_query = $local_query;
// PMA_DBI_query($local_query);
Expand Down Expand Up @@ -287,7 +286,7 @@
/**
* @todo (see explanations above in a previous todo)
*/
//if (PMA_MYSQL_INT_VERSION >= 50107) {
//if (PMA_MYSQL_INT_VERSION >= XYYZZ) {
// echo 'RENAME DATABASE';
//} else {
echo 'INSERT INTO ... SELECT';
Expand Down

0 comments on commit efdc60c

Please sign in to comment.