summaryrefslogtreecommitdiff
path: root/ext/pdo/tests/pdo_test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo/tests/pdo_test.inc')
-rw-r--r--ext/pdo/tests/pdo_test.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/pdo/tests/pdo_test.inc b/ext/pdo/tests/pdo_test.inc
index 13ab1c1d5f..79b2a9d168 100644
--- a/ext/pdo/tests/pdo_test.inc
+++ b/ext/pdo/tests/pdo_test.inc
@@ -43,6 +43,15 @@ class PDOTest {
die("skip " . $e->getMessage());
}
}
+
+ 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];
+ }
+ }
+ return false;
+ }
}