Skip to content

Commit

Permalink
Merge branch 'MDL-44377_25' of https://github.com/stronk7/moodle into…
Browse files Browse the repository at this point in the history
… MOODLE_25_STABLE
  • Loading branch information
danpoltawski committed Mar 3, 2014
2 parents fa07779 + 0490407 commit 1249c06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dml/sqlsrv_native_moodle_database.php
Expand Up @@ -145,6 +145,11 @@ public function get_configuration_hints() {
* @throws dml_connection_exception if error * @throws dml_connection_exception if error
*/ */
public function connect($dbhost, $dbuser, $dbpass, $dbname, $prefix, array $dboptions=null) { public function connect($dbhost, $dbuser, $dbpass, $dbname, $prefix, array $dboptions=null) {
if ($prefix == '' and !$this->external) {
// Enforce prefixes for everybody but mysql.
throw new dml_exception('prefixcannotbeempty', $this->get_dbfamily());
}

$driverstatus = $this->driver_installed(); $driverstatus = $this->driver_installed();


if ($driverstatus !== true) { if ($driverstatus !== true) {
Expand Down

0 comments on commit 1249c06

Please sign in to comment.