bug #1215688, Copying database does not preserve default charset and collation
This commit is contained in:
@@ -8,6 +8,8 @@ $Source$
|
|||||||
2005-06-12 Marc Delisle <lem9@users.sourceforge.net>
|
2005-06-12 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* tbl_properties.inc.php: visually bind the Add x fields dialog to its
|
* tbl_properties.inc.php: visually bind the Add x fields dialog to its
|
||||||
submit button
|
submit button
|
||||||
|
* db_operations.php: bug #1215688, Copying database does not preserve
|
||||||
|
default charset and collation
|
||||||
|
|
||||||
2005-06-11 Marc Delisle <lem9@users.sourceforge.net>
|
2005-06-11 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* tbl_properties_export.php: bug #1169791, exporting results from queries
|
* tbl_properties_export.php: bug #1169791, exporting results from queries
|
||||||
|
@@ -26,7 +26,11 @@ if (isset($db) &&
|
|||||||
$message = $strDatabaseEmpty;
|
$message = $strDatabaseEmpty;
|
||||||
} else {
|
} else {
|
||||||
if ($create_database_before_copying) {
|
if ($create_database_before_copying) {
|
||||||
$local_query = 'CREATE DATABASE ' . PMA_backquote($newname) . ';';
|
$local_query = 'CREATE DATABASE ' . PMA_backquote($newname);
|
||||||
|
if (isset($db_collation)) {
|
||||||
|
$local_query .= ' DEFAULT' . PMA_generateCharsetQueryPart($db_collation);
|
||||||
|
}
|
||||||
|
$local_query .= ';';
|
||||||
$sql_query = $local_query;
|
$sql_query = $local_query;
|
||||||
PMA_DBI_query($local_query);
|
PMA_DBI_query($local_query);
|
||||||
}
|
}
|
||||||
@@ -188,8 +192,12 @@ if ($cfgRelation['commwork']) {
|
|||||||
?></td></tr>
|
?></td></tr>
|
||||||
<form method="post" action="db_operations.php"
|
<form method="post" action="db_operations.php"
|
||||||
onsubmit="return emptyFormElements(this, 'newname')">
|
onsubmit="return emptyFormElements(this, 'newname')">
|
||||||
<tr bgcolor="<?php echo $cfg['BgcolorOne']; ?>"><td colspan="3"><?php
|
<tr bgcolor="<?php echo $cfg['BgcolorOne']; ?>"><td colspan="3">
|
||||||
echo '<input type="hidden" name="db_copy" value="true" />'
|
<?php
|
||||||
|
if (isset($db_collation)) {
|
||||||
|
echo '<input type="hidden" name="db_collation" value="' . $db_collation .'" />' . "\n";
|
||||||
|
}
|
||||||
|
echo '<input type="hidden" name="db_copy" value="true" />' . "\n"
|
||||||
. PMA_generate_common_hidden_inputs($db);
|
. PMA_generate_common_hidden_inputs($db);
|
||||||
?><input type="text" name="newname" size="30" class="textfield" value="" /></td>
|
?><input type="text" name="newname" size="30" class="textfield" value="" /></td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
|
Reference in New Issue
Block a user