Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
71504afc
Commit
71504afc
authored
Apr 16, 2012
by
Dan Poltawski
Browse files
Merge branch 'w16_MDL-32392_m23_minversion' of
git://github.com/skodak/moodle
parents
5599620f
54c5b1ad
Changes
4
Hide whitespace changes
Inline
Side-by-side
lib/dml/mssql_native_moodle_database.php
View file @
71504afc
...
...
@@ -287,19 +287,6 @@ class mssql_native_moodle_database extends moodle_database {
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
...
...
lib/dml/oci_native_moodle_database.php
View file @
71504afc
...
...
@@ -296,19 +296,6 @@ class oci_native_moodle_database extends moodle_database {
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
...
...
lib/dml/pgsql_native_moodle_database.php
View file @
71504afc
...
...
@@ -262,9 +262,8 @@ class pgsql_native_moodle_database extends moodle_database {
*
* @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
*/
pr
otec
te
d
function
is_min_version
(
$version
)
{
pr
iva
te
function
is_min_version
(
$version
)
{
$server
=
$this
->
get_server_info
();
$server
=
$server
[
'version'
];
return
version_compare
(
$server
,
$version
,
'>='
);
...
...
lib/dml/sqlsrv_native_moodle_database.php
View file @
71504afc
...
...
@@ -276,19 +276,6 @@ class sqlsrv_native_moodle_database extends moodle_database {
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment