mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
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:
parent
a182d128b8
commit
da7b427480
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user