]> git.mjollnir.org Git - moodle.git/commitdiff
non empty prefixes aren't a driver limitation, but a Moodle one. MDL-14877
authorstronk7 <stronk7>
Sat, 17 May 2008 20:51:18 +0000 (20:51 +0000)
committerstronk7 <stronk7>
Sat, 17 May 2008 20:51:18 +0000 (20:51 +0000)
lib/dml/mssql_adodb_moodle_database.php
lib/dml/oci8po_adodb_moodle_database.php
lib/dml/postgres7_adodb_moodle_database.php

index f6f22122736be607826ceed56a1e78d3077a78ec..7358cd44af185b14e04fedd89953a679cd5bb799 100644 (file)
@@ -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);
     }
 
index 88d74f4d87f49756faa4e51ad304fd1ae47e371d..11559f817b65eafeb83af3b50ef422801e594e36 100644 (file)
@@ -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);
     }
 
index f0251867c7bc04f84f6c259165933f4edce5459b..99eb356aebdfae777644f0287845043f1b95fc80 100644 (file)
@@ -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);
     }