Skip to content

Commit

Permalink
Merge branch 'w16_MDL-32392_m23_minversion' of git://github.com/skoda…
Browse files Browse the repository at this point in the history
…k/moodle
  • Loading branch information
danpoltawski committed Apr 16, 2012
2 parents 5599620 + 54c5b1a commit 71504af
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 41 deletions.
13 changes: 0 additions & 13 deletions lib/dml/mssql_native_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,19 +287,6 @@ public function get_server_info() {
return $info;
}

/**
* Returns if the RDBMS server fulfills the required version
*
* @param string $version version to check against
* @return bool returns if the version is fulfilled (true) or no (false)
* @todo Delete this unused and protected method. MDL-32392
*/
protected function is_min_version($version) {
$server = $this->get_server_info();
$server = $server['version'];
return version_compare($server, $version, '>=');
}

/**
* Converts short table name {tablename} to real table name
* supporting temp tables (#) if detected
Expand Down
13 changes: 0 additions & 13 deletions lib/dml/oci_native_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,19 +296,6 @@ public function get_server_info() {
return $info;
}

/**
* Returns if the RDBMS server fulfills the required version
*
* @param string $version version to check against
* @return bool returns if the version is fulfilled (true) or no (false)
* @todo Delete this unused and protected method. MDL-32392
*/
protected function is_min_version($version) {
$server = $this->get_server_info();
$server = $server['version'];
return version_compare($server, $version, '>=');
}

/**
* Converts short table name {tablename} to real table name
* supporting temp tables ($this->unique_session_id based) if detected
Expand Down
3 changes: 1 addition & 2 deletions lib/dml/pgsql_native_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,8 @@ public function get_server_info() {
*
* @param string $version version to check against
* @return bool returns if the version is fulfilled (true) or no (false)
* @todo Make this method private. MDL-32392
*/
protected function is_min_version($version) {
private function is_min_version($version) {
$server = $this->get_server_info();
$server = $server['version'];
return version_compare($server, $version, '>=');
Expand Down
13 changes: 0 additions & 13 deletions lib/dml/sqlsrv_native_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,19 +276,6 @@ public function get_server_info() {
return $info;
}

/**
* Returns if the RDBMS server fulfills the required version
*
* @param string $version version to check against
* @return bool returns if the version is fulfilled (true) or no (false)
* @todo Delete this unused and protected method. MDL-32392
*/
protected function is_min_version($version) {
$server = $this->get_server_info();
$server = $server['version'];
return version_compare($server, $version, '>=');
}

/**
* Override: Converts short table name {tablename} to real table name
* supporting temp tables (#) if detected
Expand Down

0 comments on commit 71504af

Please sign in to comment.