Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

class FieldsOverlapException

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Database/Query/FieldsOverlapException.php \Drupal\Core\Database\Query\FieldsOverlapException
  2. 10 core/lib/Drupal/Core/Database/Query/FieldsOverlapException.php \Drupal\Core\Database\Query\FieldsOverlapException
  3. 9 core/lib/Drupal/Core/Database/Query/FieldsOverlapException.php \Drupal\Core\Database\Query\FieldsOverlapException
  4. 8.9.x core/lib/Drupal/Core/Database/Query/FieldsOverlapException.php \Drupal\Core\Database\Query\FieldsOverlapException

Exception thrown if an insert query specifies a field twice.

It is not allowed to specify a field as default and insert field, this exception is thrown if that is the case.

Hierarchy

Expanded class hierarchy of FieldsOverlapException

Related topics

Database abstraction layer
Allow the use of different database servers using the same code base.

File

includes/database/database.inc, line 1938

View source
class FieldsOverlapException  extends Exception {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.