hholzgra                Mon Jul 10 07:39:35 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/pdo/tests      pdo_test.inc 
  Log:
  MFH
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/tests/pdo_test.inc?r1=1.9.2.4&r2=1.9.2.4.2.1&diff_format=u
Index: php-src/ext/pdo/tests/pdo_test.inc
diff -u php-src/ext/pdo/tests/pdo_test.inc:1.9.2.4 
php-src/ext/pdo/tests/pdo_test.inc:1.9.2.4.2.1
--- php-src/ext/pdo/tests/pdo_test.inc:1.9.2.4  Sun Dec 11 15:29:14 2005
+++ php-src/ext/pdo/tests/pdo_test.inc  Mon Jul 10 07:39:35 2006
@@ -65,9 +65,9 @@
        }
 
        static function detect_transactional_mysql_engine($db) {
-               foreach ($db->query('show engines') as $row) {
-                       if ($row[1] == 'YES' && ($row[0] == 'INNOBASE' || 
$row[0] == 'BDB')) {
-                               return $row[0];
+               foreach ($db->query("show variables like 'have%'") as $row) {
+                       if ($row[1] == 'YES' && ($row[0] == 'have_innodb' || 
$row[0] == 'have_bdb')) {
+                               return str_replace("have_", "", $row[0]);
                        }
                }
                return false;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to