Author: uwendel
Date: 2008-01-28 14:58:13 +0100 (Mon, 28 Jan 2008)
New Revision: 1228
Modified:
trunk/tests/ext/pdo_mysql/mysql_pdo_test.inc
Log:
.. adding to the MySQL specific stuff
Modified: trunk/tests/ext/pdo_mysql/mysql_pdo_test.inc
===================================================================
--- trunk/tests/ext/pdo_mysql/mysql_pdo_test.inc 2008-01-28 13:57:46 UTC (rev 1227)
+++ trunk/tests/ext/pdo_mysql/mysql_pdo_test.inc 2008-01-28 13:58:13 UTC (rev 1228)
@@ -138,5 +138,14 @@
}
+ static function detect_transactional_mysql_engine($db) {
+ 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;
+ }
+
}
?>
\ No newline at end of file
| Thread |
|---|
| • PHP mysqlnd svn commit: r1228 - trunk/tests/ext/pdo_mysql | uwendel | 28 Jan |