From: Hartmut Holzgraefe Date: Mon, 10 Jul 2006 07:39:35 +0000 (+0000) Subject: MFH X-Git-Tag: php-5.2.0RC1~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=098d3d2b0274aafa8df56bd528ac36c4f80a977d;p=php MFH --- diff --git a/ext/pdo/tests/pdo_test.inc b/ext/pdo/tests/pdo_test.inc index a023fd89bb..4d14f32d46 100644 --- a/ext/pdo/tests/pdo_test.inc +++ b/ext/pdo/tests/pdo_test.inc @@ -65,9 +65,9 @@ class PDOTest { } 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;