public function upsertIntoMdlTable($tableName, $valueAssocArray, $whereAssocArray) { return GcrDatabaseAccessPostgres::upsertIntoTable($this, $tableName, $valueAssocArray, $whereAssocArray); }
public function upsertIntoMhrTable($tableName, $valueAssocArray, $whereAssocArray) { // Changed by Mohan following Ron's email // return GcrDatabaseAccessPostgres::upsertIntoTable($this, $tableName, $valueAssocArray, $whereAssocArray); $this->beginTransaction(); // We need this to get past Mahara's triggers which are not schema aware. $this->gcQuery('SET LOCAL search_path TO ' . $this->short_name); $result = GcrDatabaseAccessPostgres::upsertIntoTable($this, $tableName, $valueAssocArray, $whereAssocArray); $this->commitTransaction(); return $result; }