Skip to content

Commit

Permalink
MDL-45070 relax the mariaDB version checker to work with long Ubuntu …
Browse files Browse the repository at this point in the history
…versions

Example of Ubuntu version: 5.5.5-10.0.10-MariaDB-1~saucy-log
  • Loading branch information
skodak committed Apr 14, 2014
1 parent 069fe26 commit 6b7da25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dml/mariadb_native_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function get_dbtype() {
public function get_server_info() {
$version = $this->mysqli->server_info;
$matches = null;
if (preg_match('/^5\.5\.5-(10\..+)-MariaDB$/i', $version, $matches)) {
if (preg_match('/^5\.5\.5-(10\..+)-MariaDB/i', $version, $matches)) {
// Looks like MariaDB decided to use these weird version numbers for better BC with MySQL...
$version = $matches[1];
}
Expand Down

0 comments on commit 6b7da25

Please sign in to comment.