1 query.inc public MergeQuery::where($snippet, $args = array())

Adds an arbitrary WHERE clause to the query.

Parameters

string $snippet: A portion of a WHERE clause as a prepared statement. It must use named placeholders, not ? placeholders.

array $args: An associative array of arguments.

Return value

QueryConditionInterface: The called object.

Overrides QueryConditionInterface::where

File

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

Class

MergeQuery
General class for an abstracted MERGE query operation.

Code

public function where($snippet, $args = array()) {
  $this->condition->where($snippet, $args);
  return $this;
}