MINOR: SQLiteDatabase defaults to the sqlite3 class instead of the PDO class

This commit is contained in:
Andreas Piening 2010-04-14 03:07:20 +00:00
parent e76d193b1e
commit 5504bf1901

View File

@ -23,7 +23,7 @@ if(in_array($databaseConfig['type'], $classes)) {
);
// The SQLite3 class is available in PHP 5.3 and newer
if(class_exists('SQLite3') && $databaseConfig['type'] == 'SQLite3Database') {
if(class_exists('SQLite3') && $databaseConfig['type'] != 'SQLitePDODatabase') {
$databaseConfig['type'] = 'SQLite3Database';
} else {
$databaseConfig['type'] = 'SQLitePDODatabase';