]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15071 undoing part of previous commit, let's wait for Eloy
authorskodak <skodak>
Sun, 13 Jul 2008 11:42:37 +0000 (11:42 +0000)
committerskodak <skodak>
Sun, 13 Jul 2008 11:42:37 +0000 (11:42 +0000)
lib/xmldb/xmldb_statement.php

index c78bb269fddca74dd1760fd6de36f497d72f829b..dea35a86e6b8a3e2c30dbf90b080b3f953a28375 100644 (file)
@@ -153,13 +153,11 @@ class xmldb_statement extends xmldb_object {
                     $fields = $this->getFieldsFromInsertSentence($sentence);
                     $values = $this->getValuesFromInsertSentence($sentence);
                 /// Check that we aren't inserting the id field
-/* //ids should be the same when moving database
                     if (in_array('id', $fields)) {
                         $this->errormsg = 'Cannot insert the "id" field. It is an autonumeric column';
                         $this->debug($this->errormsg);
                         $result = false;
                     }
-*/
                     if ($result && count($fields) == 0) {
                         $this->errormsg = 'Missing fields in sentence "' . $sentence . '"';
                         $this->debug($this->errormsg);