]> git.pld-linux.org Git - packages/cacti.git/commitdiff
- allow adodb mysql driver in the future support socket too auto/th/cacti-0_8_7i-2
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 24 Jan 2012 09:25:34 +0000 (09:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql-socket.patch -> 1.2

mysql-socket.patch

index e62cb9ce7e5ca7132e42c60a749d952ad21fbd7b..d07a5016230cf3c7320b9c81287c8c2cc650b0dc 100644 (file)
@@ -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;
This page took 0.074684 seconds and 4 git commands to generate.