Hi,
Is there any reason for hardcoding array sizes in sqlparser.data.php? count()'s complexity is O(1), it just reads item count from hash table which is used internally for storing arrays.
Le 2011-06-04 11:33, Piotr Przybylski a écrit :
Hi,
Is there any reason for hardcoding array sizes in sqlparser.data.php? count()'s complexity is O(1), it just reads item count from hash table which is used internally for storing arrays.
Good idea to go back to using count().
2011/6/5 Marc Delisle marc@infomarc.info:
Le 2011-06-04 11:33, Piotr Przybylski a écrit :
Hi,
Is there any reason for hardcoding array sizes in sqlparser.data.php? count()'s complexity is O(1), it just reads item count from hash table which is used internally for storing arrays.
Good idea to go back to using count().
Done. Along with that, I removed also $mysql_charsets_count and $mysql_collations_count. All were used in SQL parser, so I moved their definition to PMA_SQP_parse.