packages: cacti/mysql-socket.patch - allow adodb mysql driver in the future...

glen glen at pld-linux.org
Tue Jan 24 10:25:39 CET 2012


Author: glen                         Date: Tue Jan 24 09:25:39 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- allow adodb mysql driver in the future support socket too

---- Files affected:
packages/cacti:
   mysql-socket.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/cacti/mysql-socket.patch
diff -u packages/cacti/mysql-socket.patch:1.1 packages/cacti/mysql-socket.patch:1.2
--- packages/cacti/mysql-socket.patch:1.1	Tue Jan 24 10:24:53 2012
+++ packages/cacti/mysql-socket.patch	Tue Jan 24 10:25:34 2012
@@ -18,7 +18,7 @@
  
 -	if ($port != "3306") {
 +	// socket supported for mysqli only, not mysql
-+	if ($port && !is_numeric($port) && $db_type == "mysqli") {
++	if ($port && !is_numeric($port)) {
 +		$dsn .= "&socket=" . $port;
 +	} elseif ($port != "3306") {
  		$dsn .= "&port=" . $port;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cacti/mysql-socket.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list