1 query.inc public DatabaseCondition::isNotNull($field)

Sets a condition that the specified field be NOT NULL.

Parameters

string $field: The name of the field to check.

Return value

QueryConditionInterface: The called object.

Overrides QueryConditionInterface::isNotNull

File

core/includes/database/query.inc, line 1817
Non-specific Database query code. Used by all engines.

Class

DatabaseCondition
Generic class for a series of conditions in a query.

Code

public function isNotNull($field) {
  return $this->condition($field, NULL, 'IS NOT NULL');
}