RENAME DATABASE removed in 5.1.23
This commit is contained in:
@@ -39,12 +39,11 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) {
|
|||||||
(isset($create_database_before_copying) && $create_database_before_copying)) {
|
(isset($create_database_before_copying) && $create_database_before_copying)) {
|
||||||
/**
|
/**
|
||||||
* @todo activate this with the correct version of MySQL
|
* @todo activate this with the correct version of MySQL
|
||||||
* when they fix the problem when the db contains a VIEW
|
* if/when they offer this functionality
|
||||||
* (problem exists in 5.1.20)
|
*
|
||||||
* also, in 6.0.0 when the db contains a Falcon table,
|
* Note: RENAME DATABASE was removed in 5.1.23
|
||||||
* renaming it results in a unusable db!
|
|
||||||
*/
|
*/
|
||||||
//if (PMA_MYSQL_INT_VERSION >= 50107) {
|
//if (PMA_MYSQL_INT_VERSION >= XYYZZ) {
|
||||||
// $local_query = 'RENAME DATABASE ' . PMA_backquote($db) . ' TO ' . PMA_backquote($newname) . ';';
|
// $local_query = 'RENAME DATABASE ' . PMA_backquote($db) . ' TO ' . PMA_backquote($newname) . ';';
|
||||||
// $sql_query = $local_query;
|
// $sql_query = $local_query;
|
||||||
// PMA_DBI_query($local_query);
|
// PMA_DBI_query($local_query);
|
||||||
@@ -293,7 +292,7 @@ if (!$is_information_schema) {
|
|||||||
/**
|
/**
|
||||||
* @todo (see explanations above in a previous todo)
|
* @todo (see explanations above in a previous todo)
|
||||||
*/
|
*/
|
||||||
//if (PMA_MYSQL_INT_VERSION >= 50107) {
|
//if (PMA_MYSQL_INT_VERSION >= XYYZZ) {
|
||||||
// echo 'RENAME DATABASE';
|
// echo 'RENAME DATABASE';
|
||||||
//} else {
|
//} else {
|
||||||
echo 'INSERT INTO ... SELECT';
|
echo 'INSERT INTO ... SELECT';
|
||||||
|
Reference in New Issue
Block a user