Add mysql_errno() output to error logging

This commit is contained in:
Chris Morgan
2006-07-19 17:34:59 +00:00
committed by WineHQ
parent 3697e8b9c4
commit 55065a254c

View File

@@ -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 = "<p><b>An internal error has occurred and has been logged and reported to appdb admins</b></p>";
addmsg($sStatusMessage);