From da7b427480db39737a4f2d4bec90725bb43962c8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 10 Apr 2011 15:10:07 +0000 Subject: [PATCH] output function_backtrace, if get_last_insert_id() fails and commented code to switch querylog on for a single instance/domain --- phpgwapi/inc/class.egw_db.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index 285c1a1c6a..234b463d5b 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -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 "

db::get_last_insert_id(table='$table',field='$field') not yet implemented for db-type '$this->Type' OR no insert operation before

\n"; - function_backtrace(); + echo '

'.function_backtrace()."

\n"; return -1; } return $id;