Quote:// around line 1700 in libraries/datamapper.php // Create new record $this->db->insert($this->table, $data); if( ! $this->_force_save_as_new) { // Assign new ID $this->id = $this->db->insert_id(); // UNSUPPORTED for oci8 driver }
Quote:$query = $this->db->query("select {$this->table}_SQ.NEXTVAL ID FROM DUAL"); $query_result = $query->row(); $data['id'] = $query_result->id; // Create new record $this->db->insert($this->table, $data); if( ! $this->_force_save_as_new) { // Assign new ID $this->id = $data['id']; }
Quote:function field_data() { $retval = array(); $fieldCount = $this->num_fields(); for ($c = 1; $c <= $fieldCount; $c++) { $F = new stdClass(); $F->name = strtolower(ocicolumnname($this->stmt_id, $c)); // IMPORTANT $F->type = ocicolumntype($this->stmt_id, $c); $F->max_length = ocicolumnsize($this->stmt_id, $c); $retval[] = $F; } return $retval; }