Added CHECK TABLE to multisubmits.
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-03-24 Michal Cihar <nijel@users.sourceforge.net>
|
||||||
|
* db_details_structure.php3, mult_submits.inc.php: Added CHECK TABLE to
|
||||||
|
multisubmit actions (RFE #622603).
|
||||||
|
|
||||||
2003-03-23 Marc Delisle <lem9@users.sourceforge.net>
|
2003-03-23 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/sqlparser.lib.php3, libraries/config_import.lib.php3,
|
* libraries/sqlparser.lib.php3, libraries/config_import.lib.php3,
|
||||||
config.inc.php3, Documentation.html: disabling of the parser no
|
config.inc.php3, Documentation.html: disabling of the parser no
|
||||||
|
@@ -346,6 +346,8 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) {
|
|||||||
. $strEmpty . '</option>' . "\n";
|
. $strEmpty . '</option>' . "\n";
|
||||||
echo ' <option value="' . $strPrintView . '" >'
|
echo ' <option value="' . $strPrintView . '" >'
|
||||||
. $strPrintView . '</option>' . "\n";
|
. $strPrintView . '</option>' . "\n";
|
||||||
|
echo ' <option value="' . $strCheckTable . '" >'
|
||||||
|
. $strCheckTable . '</option>' . "\n";
|
||||||
echo ' <option value="' . $strOptimizeTable . '" >'
|
echo ' <option value="' . $strOptimizeTable . '" >'
|
||||||
. $strOptimizeTable . '</option>' . "\n";
|
. $strOptimizeTable . '</option>' . "\n";
|
||||||
echo ' <option value="' . $strRepairTable . '" >'
|
echo ' <option value="' . $strRepairTable . '" >'
|
||||||
|
@@ -25,6 +25,11 @@ if (!empty($submit_mult)
|
|||||||
case $strEmpty:
|
case $strEmpty:
|
||||||
$what = 'empty_tbl';
|
$what = 'empty_tbl';
|
||||||
break;
|
break;
|
||||||
|
case $strCheckTable:
|
||||||
|
unset($submit_mult);
|
||||||
|
$query_type = 'check_tbl';
|
||||||
|
$mult_btn = $strYes;
|
||||||
|
break;
|
||||||
case $strOptimizeTable:
|
case $strOptimizeTable:
|
||||||
unset($submit_mult);
|
unset($submit_mult);
|
||||||
$query_type = 'optimize_tbl';
|
$query_type = 'optimize_tbl';
|
||||||
@@ -149,6 +154,12 @@ else if ($mult_btn == $strYes) {
|
|||||||
$reload = 1;
|
$reload = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'check_tbl':
|
||||||
|
$sql_query .= (empty($sql_query) ? 'CHECK TABLE ' : ', ')
|
||||||
|
. PMA_backquote(urldecode($selected[$i]))
|
||||||
|
. (($i == $selected_cnt-1) ? ';' : '');
|
||||||
|
break;
|
||||||
|
|
||||||
case 'optimize_tbl':
|
case 'optimize_tbl':
|
||||||
$sql_query .= (empty($sql_query) ? 'OPTIMIZE TABLE ' : ', ')
|
$sql_query .= (empty($sql_query) ? 'OPTIMIZE TABLE ' : ', ')
|
||||||
. PMA_backquote(urldecode($selected[$i]))
|
. PMA_backquote(urldecode($selected[$i]))
|
||||||
@@ -178,7 +189,8 @@ else if ($mult_btn == $strYes) {
|
|||||||
if ($query_type != 'drop_tbl'
|
if ($query_type != 'drop_tbl'
|
||||||
&& $query_type != 'drop_fld'
|
&& $query_type != 'drop_fld'
|
||||||
&& $query_type != 'repair_tbl'
|
&& $query_type != 'repair_tbl'
|
||||||
&& $query_type != 'optimize_tbl') {
|
&& $query_type != 'optimize_tbl'
|
||||||
|
&& $query_type != 'check_tbl') {
|
||||||
$sql_query .= $a_query . ';' . "\n";
|
$sql_query .= $a_query . ';' . "\n";
|
||||||
|
|
||||||
if ($query_type != 'drop_db') {
|
if ($query_type != 'drop_db') {
|
||||||
@@ -191,6 +203,7 @@ else if ($mult_btn == $strYes) {
|
|||||||
if ($query_type == 'drop_tbl'
|
if ($query_type == 'drop_tbl'
|
||||||
|| $query_type == 'drop_fld'
|
|| $query_type == 'drop_fld'
|
||||||
|| $query_type == 'repair_tbl'
|
|| $query_type == 'repair_tbl'
|
||||||
|
|| $query_type == 'check_tbl'
|
||||||
|| $query_type == 'optimize_tbl') {
|
|| $query_type == 'optimize_tbl') {
|
||||||
PMA_mysql_select_db($db);
|
PMA_mysql_select_db($db);
|
||||||
$result = @PMA_mysql_query($sql_query) or PMA_mysqlDie('', '', FALSE, $err_url);
|
$result = @PMA_mysql_query($sql_query) or PMA_mysqlDie('', '', FALSE, $err_url);
|
||||||
|
Reference in New Issue
Block a user