bug #1821264 [display] MaxTableList and INFORMATION_SCHEMA

This commit is contained in:
Marc Delisle
2007-12-27 23:50:45 +00:00
parent 8e0a78e0c6
commit ec408de34d
2 changed files with 4 additions and 2 deletions

View File

@@ -187,7 +187,7 @@ function PMA_DBI_get_tables($database, $link = null)
/**
* returns array of all tables in given db or dbs
* this function expects unqoted names:
* this function expects unquoted names:
* RIGHT: my_database
* WRONG: `my_database`
* WRONG: my\_database
@@ -212,12 +212,13 @@ function PMA_DBI_get_tables($database, $link = null)
* @param string $table table
* @param boolean|string $tbl_is_group $table is a table group
* @param resource $link mysql link
* @param integer $limit_offset zero-based offset for the count
* @param boolean|integer $limit_count number of tables to return
* @return array list of tables in given db(s)
*/
function PMA_DBI_get_tables_full($database, $table = false,
$tbl_is_group = false, $link = null, $limit_offset = 0, $limit_count = false)
{
// currently supported for MySQL >= 50002
if (true === $limit_count) {
$limit_count = $GLOBALS['cfg']['MaxTableList'];
}