From: skodak Date: Sun, 13 Jul 2008 11:42:37 +0000 (+0000) Subject: MDL-15071 undoing part of previous commit, let's wait for Eloy X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ad0373df557722bfb7d29a4c1c32a35361f9a6b7;p=moodle.git MDL-15071 undoing part of previous commit, let's wait for Eloy --- diff --git a/lib/xmldb/xmldb_statement.php b/lib/xmldb/xmldb_statement.php index c78bb269fd..dea35a86e6 100644 --- a/lib/xmldb/xmldb_statement.php +++ b/lib/xmldb/xmldb_statement.php @@ -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);