MDL-22906 install - allow MS native drivers to be used everywhere
authorEloy Lafuente <stronk7@moodle.org>
Thu, 24 Jun 2010 16:48:11 +0000 (16:48 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Thu, 24 Jun 2010 16:48:11 +0000 (16:48 +0000)
admin/cli/install.php
install.php

index 6bf1903..eb6afe7 100644 (file)
@@ -148,8 +148,8 @@ require_once($CFG->libdir.'/environmentlib.php');
 $databases = array('mysqli' => moodle_database::get_driver_instance('mysqli', 'native'),
                    'pgsql'  => moodle_database::get_driver_instance('pgsql',  'native'),
                    'oci'    => moodle_database::get_driver_instance('oci',    'native'),
-                   //'sqlsrv' => moodle_database::get_driver_instance('sqlsrv', 'native'), // new MS sql driver - win32 only
-                   //'mssql'  => moodle_database::get_driver_instance('mssql',  'native'), // FreeTDS driver
+                   'sqlsrv' => moodle_database::get_driver_instance('sqlsrv', 'native'), // MS SQL*Server PHP driver
+                   'mssql'  => moodle_database::get_driver_instance('mssql',  'native'), // FreeTDS driver
                   );
 foreach ($databases as $type=>$database) {
     if ($database->driver_installed() !== true) {
index 164d053..7c79a21 100644 (file)
@@ -454,7 +454,7 @@ if ($config->stage == INSTALL_DATABASETYPE) {
     $databases = array('mysqli' => moodle_database::get_driver_instance('mysqli', 'native'),
                        'pgsql'  => moodle_database::get_driver_instance('pgsql',  'native'),
                        'oci'    => moodle_database::get_driver_instance('oci',    'native'),
-                       //'sqlsrv' => moodle_database::get_driver_instance('sqlsrv', 'native'), // new MS sql driver - win32 only
+                       'sqlsrv' => moodle_database::get_driver_instance('sqlsrv', 'native'), // MS SQL*Server PHP driver
                        'mssql'  => moodle_database::get_driver_instance('mssql',  'native'), // FreeTDS driver
                       );