From 20800942f340465c6c4e3abaa69a00ed997224e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 30 Aug 2010 15:20:09 +0200 Subject: [PATCH] Revert "Avoid precalculating counts." This reverts commit 42f04d4a7ece376c57d3c7a717e24bbcc6621425. We will stick with precalculated ones and check it in testcase. --- libraries/sqlparser.data.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/sqlparser.data.php b/libraries/sqlparser.data.php index a9196c5b8..38b179a7c 100644 --- a/libraries/sqlparser.data.php +++ b/libraries/sqlparser.data.php @@ -337,7 +337,7 @@ $PMA_SQPdata_function_name = array ( * * @global integer MySQL attributes count */ -$PMA_SQPdata_function_name_cnt = count($PMA_SQPdata_function_name); +$PMA_SQPdata_function_name_cnt = 299; /* * DEBUG @@ -390,7 +390,7 @@ $PMA_SQPdata_column_attrib = array ( * * @global integer MySQL attributes count */ -$PMA_SQPdata_column_attrib_cnt = count($PMA_SQPdata_column_attrib); +$PMA_SQPdata_column_attrib_cnt = 30; /** * words that are reserved by MySQL and may not be used as identifiers without quotes @@ -697,7 +697,7 @@ $PMA_SQPdata_reserved_word = array ( * * @global integer MySQL reserved words count */ -$PMA_SQPdata_reserved_word_cnt = count($PMA_SQPdata_reserved_word); +$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 @@ -1212,7 +1212,7 @@ $PMA_SQPdata_forbidden_word = array ( * * @global integer MySQL forbidden words count */ -$PMA_SQPdata_forbidden_word_cnt = count($PMA_SQPdata_forbidden_word); +$PMA_SQPdata_forbidden_word_cnt = 483; /** * the MySQL column/data types @@ -1283,7 +1283,7 @@ $PMA_SQPdata_column_type = array ( * * @global integer MySQL column types count */ -$PMA_SQPdata_column_type_cnt = count($PMA_SQPdata_column_type); +$PMA_SQPdata_column_type_cnt = 54; /* * check counts