[Phpmyadmin-devel] PMA_DBI_get_dblist()

Sebastian Mendel lists at sebastianmendel.de
Tue Sep 19 14:28:43 CEST 2006


Michal Čihař schrieb:
> Hi
> 
> On Tue, 19 Sep 2006 10:38:41 +0200
> Sebastian Mendel <lists at sebastianmendel.de> wrote:
> 
>> if (PMA_MYSQL_INT_VERSION < 40002 ||
>> !empty($GLOBALS['cfg']['Server']['hide_db'])) {
>>
>> if the above comes true every DB is checked with 'USE dB' for access,
>> Why?
> 
> Because the loop does two independent things:
> 
> - Verify that we can access the database for MySQL < 4.0.2
> - Remove databases matching hide_db

yes, but 'USE DATABSE'-check is currently always done is have hidedbs -
that is not necessary if i have MySQL > 4.0.2

... but this is clear now


> and make the execution faster):

of course! ;-)



-- 
Sebastian Mendel

www.sebastianmendel.de




More information about the Developers mailing list