From 55065a254c90789bea044990deed1e593281141c Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Wed, 19 Jul 2006 17:34:59 +0000 Subject: [PATCH] Add mysql_errno() output to error logging --- include/query.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/query.php b/include/query.php index e45f15e..9d7b087 100644 --- a/include/query.php +++ b/include/query.php @@ -113,7 +113,10 @@ function query_bugzilladb($sQuery,$sComment="") function query_error($sQuery, $sComment="") { - error_log::log_error(ERROR_SQL, "Query: '".$sQuery."' mysql_error(): '".mysql_error()."' comment: '".$sComment."'"); + error_log::log_error(ERROR_SQL, "Query: '".$sQuery."' ". + "mysql_errno(): '".mysql_errno()."' ". + "mysql_error(): '".mysql_error()."' ". + "comment: '".$sComment."'"); $sStatusMessage = "

An internal error has occurred and has been logged and reported to appdb admins

"; addmsg($sStatusMessage);