Bug #19734 » t3lib_db.diff
t3lib/class.t3lib_db.php (working copy) | ||
---|---|---|
$debug = true; // only enable output if it's really useful
|
||
foreach ($explain_tables as $table) {
|
||
$res = $this->sql_query('SHOW INDEX FROM '.$table, $this->link);
|
||
if (is_resource($res)) {
|
||
while ($tempRow = $this->sql_fetch_assoc($res)) {
|
||
$indices_output[] = $tempRow;
|
||
}
|
||
$this->sql_free_result($res);
|
||
}
|
||
$istable=$this->sql_num_rows($this->sql_query('SHOW TABLE STATUS LIKE \''.$table.'\''));
|
||
if($istable){
|
||
$res = $this->sql_query('SHOW INDEX FROM '.$table, $this->link);
|
||
if (is_resource($res)) {
|
||
while ($tempRow = $this->sql_fetch_assoc($res)) {
|
||
$indices_output[] = $tempRow;
|
||
}
|
||
$this->sql_free_result($res);
|
||
}
|
||
}
|
||
}
|
||
} else {
|
||
$debug = false;
|