From 098d3d2b0274aafa8df56bd528ac36c4f80a977d Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Mon, 10 Jul 2006 07:39:35 +0000 Subject: [PATCH] MFH --- ext/pdo/tests/pdo_test.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.50.1