appdb/include query.php

WineHQ wineowner at wine.codeweavers.com
Wed Jul 19 12:34:59 CDT 2006


ChangeSet ID:	26667
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/07/19 12:34:59

Modified files:
	include        : query.php 

Log message:
	Chris Morgan <cmorgan at 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);



More information about the wine-cvs mailing list