From 388327d642714ff42e3dd7eb3cdc1c9b24efea2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 30 Aug 2010 15:24:07 +0200 Subject: [PATCH] Debug code was migrated to testcase. --- libraries/sqlparser.data.php | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/libraries/sqlparser.data.php b/libraries/sqlparser.data.php index 2277d6a6c..dffd6b166 100644 --- a/libraries/sqlparser.data.php +++ b/libraries/sqlparser.data.php @@ -17,7 +17,7 @@ * (It's slower to have PHP do the count). * * It's easier to use only uppercase for proper sorting. In case of - * doubt, use the DEBUG code after this function's definition. + * doubt, use the test case to verify. * * @package phpMyAdmin */ @@ -339,17 +339,6 @@ $PMA_SQPdata_function_name = array ( */ $PMA_SQPdata_function_name_cnt = 298; -/* - * DEBUG -$test_PMA_SQPdata_function_name = $PMA_SQPdata_function_name; -sort($PMA_SQPdata_function_name); -if ($PMA_SQPdata_function_name != $test_PMA_SQPdata_function_name) { - echo 'sort properly like this
';
-    print_r($PMA_SQPdata_function_name);
-    echo '
'; -} - */ - /** * @global array MySQL attributes */ @@ -698,23 +687,6 @@ $PMA_SQPdata_reserved_word = array ( * @global integer MySQL reserved words count */ $PMA_SQPdata_reserved_word_cnt = 289; -/** - * The previous array must be sorted so that the binary search work. - * Sometimes a word is not added in the correct order, so - * this debugging code shows the problem. The same should be - * done for all arrays. - */ -/* -$original = $PMA_SQPdata_reserved_word; -sort($PMA_SQPdata_reserved_word); -$difference = array_diff_assoc($original, $PMA_SQPdata_reserved_word); -echo '
';
-print_r($difference);
-echo '
'; -echo '
';
-print_r($PMA_SQPdata_reserved_word);
-echo '
'; -*/ /** * words forbidden to be used as column or table name wihtout quotes @@ -1285,10 +1257,4 @@ $PMA_SQPdata_column_type = array ( */ $PMA_SQPdata_column_type_cnt = 54; -/* - * check counts -foreach ($GLOBALS as $n => $a) { - echo is_array($a) ? $n . ': ' . count($a) . '
' : ''; -} - */ ?>