output function_backtrace, if get_last_insert_id() fails and commented code to switch querylog on for a single instance/domain

This commit is contained in:
Ralf Becker 2011-04-10 15:10:07 +00:00
parent a182d128b8
commit da7b427480

View File

@ -274,6 +274,7 @@ class egw_db
$this->$var = $db_data[$key];
}
}
//if ($GLOBALS['egw_info']['server']['default_domain'] == 'ralfsmacbook.local') $this->query_log = '/tmp/query.log';
}
/**
@ -846,7 +847,7 @@ class egw_db
if ($id === False) // function not supported
{
echo "<p>db::get_last_insert_id(table='$table',field='$field') not yet implemented for db-type '$this->Type' OR no insert operation before</p>\n";
function_backtrace();
echo '<p>'.function_backtrace()."</p>\n";
return -1;
}
return $id;