Project

General

Profile

Bug #19734 » t3lib_db.diff

Administrator Admin, 2009-03-02 09:44

View differences:

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;
(1-1/2)