From ad0373df557722bfb7d29a4c1c32a35361f9a6b7 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 13 Jul 2008 11:42:37 +0000 Subject: [PATCH] MDL-15071 undoing part of previous commit, let's wait for Eloy --- lib/xmldb/xmldb_statement.php | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.39.5