示例#1
0
function testNormals(&$u, $c, $comment, $reportFailure = false)
{
    $result = testNFC($u, $c, $comment, $reportFailure);
    $result = testNFD($u, $c, $comment, $reportFailure) && $result;
    $result = testNFKC($u, $c, $comment, $reportFailure) && $result;
    $result = testNFKD($u, $c, $comment, $reportFailure) && $result;
    $result = testCleanUp($u, $c, $comment, $reportFailure) && $result;
    global $verbose;
    if ($verbose && !$result && !$reportFailure) {
        print $comment;
        testNormals($u, $c, $comment, true);
    }
    return $result;
}
                 $bad = verifySqlStatement(trim($completeLine), $db->dbType, $newTables);
                 if (!empty($bad)) {
                     logThis('*** ERROR: schema change script has errors - stopping execution');
                     $sqlErrors[] = $bad;
                 }
                 // reset for next SQL query
                 $completeLine = '';
             }
         }
     }
 } else {
     logThis('*** ERROR: could not read schema script: ' . $sqlScript);
     $sqlErrors[] = $mod_strings['ERR_UW_FILE_NOT_READABLE'] . '::' . $sqlScript;
 }
 // remove __uw_temp tables
 testCleanUp($db->dbType);
 fclose($fp);
 $customTables = getCustomTables($db->dbType);
 if (!empty($customTables)) {
     $_SESSION['alterCustomTableQueries'] = alterCustomTables($db->dbType, $customTables);
 } else {
     $_SESSION['alterCustomTableQueries'] = false;
 }
 $_SESSION['allTables'] = getAllTables($db->dbType);
 $schema = "<p><a href='javascript:void(0); toggleNwFiles(\"schemashow\");'>{$mod_strings['LBL_UW_SHOW_SCHEMA']}</a>";
 $schema .= "<div id='schemashow' style='display:none;'>";
 $schema .= "<textarea readonly cols='80' rows='10'>{$contents}</textarea>";
 $schema .= "</div></p>";
 if (version_compare($current_version, '450', "<")) {
     if (isset($_SESSION['allTables']) && !empty($_SESSION['allTables'])) {
         $alterTableContents = printAlterTableSql($_SESSION['allTables']);