From d02e368d774cfc874cd2c933ba8f2c02b0061f77 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 17 May 2008 20:51:18 +0000 Subject: [PATCH] non empty prefixes aren't a driver limitation, but a Moodle one. MDL-14877 --- lib/dml/mssql_adodb_moodle_database.php | 4 ---- lib/dml/oci8po_adodb_moodle_database.php | 7 ------- lib/dml/postgres7_adodb_moodle_database.php | 3 --- 3 files changed, 14 deletions(-) diff --git a/lib/dml/mssql_adodb_moodle_database.php b/lib/dml/mssql_adodb_moodle_database.php index f6f2212273..7358cd44af 100644 --- a/lib/dml/mssql_adodb_moodle_database.php +++ b/lib/dml/mssql_adodb_moodle_database.php @@ -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); } diff --git a/lib/dml/oci8po_adodb_moodle_database.php b/lib/dml/oci8po_adodb_moodle_database.php index 88d74f4d87..11559f817b 100644 --- a/lib/dml/oci8po_adodb_moodle_database.php +++ b/lib/dml/oci8po_adodb_moodle_database.php @@ -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); } diff --git a/lib/dml/postgres7_adodb_moodle_database.php b/lib/dml/postgres7_adodb_moodle_database.php index f0251867c7..99eb356aeb 100644 --- a/lib/dml/postgres7_adodb_moodle_database.php +++ b/lib/dml/postgres7_adodb_moodle_database.php @@ -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); } -- 2.39.5