ChangeSet ID: 26667 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2006/07/19 12:34:59
Modified files: include : query.php
Log message: Chris Morgan cmorgan@alum.wpi.edu Add mysql_errno() output to error logging
Patch: http://cvs.winehq.org/patch.py?id=26667
Old revision New revision Changes Path 1.5 1.6 +4 -1 appdb/include/query.php
Index: appdb/include/query.php diff -u -p appdb/include/query.php:1.5 appdb/include/query.php:1.6 --- appdb/include/query.php:1.5 19 Jul 2006 17:34:59 -0000 +++ appdb/include/query.php 19 Jul 2006 17:34:59 -0000 @@ -113,7 +113,10 @@ function query_bugzilladb($sQuery,$sComm
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);