diff -r fa2b0825bbc5 -r e58294b867c1 includes/dbal.php
--- a/includes/dbal.php Wed Aug 21 22:34:54 2013 -0400
+++ b/includes/dbal.php Wed Aug 21 22:50:34 2013 -0400
@@ -32,6 +32,17 @@
echo "$errtype: $errstr
Error source:
$debug"; } +/** + * Checks to see if a given pdo driver is available. + * @param string driver name + * @return bool + */ + +function have_pdo($driver) +{ + return class_exists('PDO') && extension_loaded("pdo_$driver") && class_exists("{$driver}_pdo"); +} + global $db_sql_parse_time; $db_sql_parse_time = 0; @@ -40,7 +51,7 @@ var $row = array(); var $rowset = array(); var $errhandler; - var $dbms_name = 'MySQL'; + var $dbms_name = 'MySQL (legacy)'; /** * Get a flat textual list of queries that have been made. @@ -706,7 +717,7 @@ var $row = array(); var $rowset = array(); var $errhandler; - var $dbms_name = 'MySQL'; + var $dbms_name = 'MySQL/PDO'; /** * Get a flat textual list of queries that have been made.