mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
non empty prefixes aren't a driver limitation, but a Moodle one. MDL-14877
This commit is contained in:
parent
9f17b4bc8f
commit
d02e368d77
@ -9,10 +9,6 @@ require_once($CFG->libdir.'/dml/adodb_moodle_database.php');
|
||||
*/
|
||||
class mssql_adodb_moodle_database extends adodb_moodle_database {
|
||||
function __construct ($dbhost, $dbuser, $dbpass, $dbname, $dbpersist, $prefix) {
|
||||
if ($prefix=='') {
|
||||
print_error('prefixcannotbeempty', 'debug', '', array($prefix, $this->get_dbfamily()));
|
||||
}
|
||||
|
||||
parent::__construct($dbhost, $dbuser, $dbpass, $dbname, false, $prefix);
|
||||
}
|
||||
|
||||
|
@ -10,13 +10,6 @@ require_once($CFG->libdir.'/dml/oci8po_adodb_moodle_recordset.php');
|
||||
*/
|
||||
class oci8_adodb_moodle_database extends adodb_moodle_database {
|
||||
function __construct($dbhost, $dbuser, $dbpass, $dbname, $dbpersist, $prefix) {
|
||||
if ($prefix=='') {
|
||||
print_error('prefixcannotbeempty', 'debug', '', array($prefix, $this->get_dbfamily()));
|
||||
}
|
||||
if (strlen($prefix) > 2) { //Max prefix length for Oracle is 2cc
|
||||
print_error('prefixlimit', 'debug', '', $prefix);
|
||||
}
|
||||
|
||||
parent::__construct($dbhost, $dbuser, $dbpass, $dbname, $dbpersist, $prefix);
|
||||
}
|
||||
|
||||
|
@ -9,9 +9,6 @@ require_once($CFG->libdir.'/dml/adodb_moodle_database.php');
|
||||
*/
|
||||
class postgres7_adodb_moodle_database extends adodb_moodle_database {
|
||||
function __construct($dbhost, $dbuser, $dbpass, $dbname, $dbpersist, $prefix) {
|
||||
if ($prefix=='') {
|
||||
print_error('prefixcannotbeempty', 'debug', '', array($prefix, $this->get_dbfamily()));
|
||||
}
|
||||
parent::__construct($dbhost, $dbuser, $dbpass, $dbname, $dbpersist, $prefix);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user