= 3.23 && intval(MYSQL_MINOR_VERSION) >= 22) {
if ($tbl_type == 'MYISAM' or $tbl_type == 'BDB') {
?>
:
-
-
0) {
while ($tmp = mysql_fetch_array($result)) {
if (isset($tmp['Variable_name'])) {
switch ($tmp['Variable_name']) {
case 'have_bdb':
if ($tmp['Value'] == 'YES') {
$tbl_bdb = TRUE;
}
break;
case 'have_gemini':
if ($tmp['Value'] == 'YES') {
$tbl_gemini = TRUE;
}
break;
case 'have_innodb':
if ($tmp['Value'] == 'YES') {
$tbl_innodb = TRUE;
}
break;
case 'have_isam':
if ($tmp['Value'] == 'YES') {
$tbl_isam = TRUE;
}
break;
} // end switch
} // end if isset($tmp['Variable_name'])
} // end while
} // end if $result
echo "\n";
?>
= 3.23
else { // MySQL < 3.23
// FIXME: find a way to know the table type, then let OPTIMIZE if MYISAM or
// BDB
?>