*/
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);
}
*/
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);
}
*/
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);
}