mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-15071 undoing part of previous commit, let's wait for Eloy
This commit is contained in:
parent
8e768c6d64
commit
ad0373df55
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user