MDL-22076 temptables - warn and dropped on disposal

This commit is contained in:
Eloy Lafuente
2010-04-21 16:12:27 +00:00
parent b944270f34
commit 10f375aa2e
13 changed files with 105 additions and 139 deletions
+4
View File
@@ -27,6 +27,7 @@
require_once($CFG->libdir.'/dml/moodle_database.php');
require_once($CFG->libdir.'/dml/pgsql_native_moodle_recordset.php');
require_once($CFG->libdir.'/dml/pgsql_native_moodle_temptables.php');
/**
* Native pgsql class representing moodle database interface.
@@ -181,6 +182,9 @@ class pgsql_native_moodle_database extends moodle_database {
throw new dml_connection_exception('Can not read bytea type.');
}
// Connection stabilished and configured, going to instantiate the temptables controller
$this->temptables = new pgsql_native_moodle_temptables($this);
return true;
}