public function SelectQueryExtender::forUpdate

cis7 select.inc public SelectQueryExtender::forUpdate($set = TRUE)
cle7 select.inc public SelectQueryExtender::forUpdate($set = TRUE)
elmsmedia7 select.inc public SelectQueryExtender::forUpdate($set = TRUE)
icor7 select.inc public SelectQueryExtender::forUpdate($set = TRUE)
meedjum_blog7 select.inc public SelectQueryExtender::forUpdate($set = TRUE)
mooc7 select.inc public SelectQueryExtender::forUpdate($set = TRUE)

Add FOR UPDATE to the query.

FOR UPDATE prevents the rows retrieved by the SELECT statement from being modified or deleted by other transactions until the current transaction ends. Other transactions that attempt UPDATE, DELETE, or SELECT FOR UPDATE of these rows will be blocked until the current transaction ends.

Parameters

$set: IF TRUE, FOR UPDATE will be added to the query, if FALSE then it won't.

Return value

QueryConditionInterface The called object.

Overrides SelectQueryInterface::forUpdate

File

includes/database/select.inc, line 789

Class

SelectQueryExtender
The base extender class for Select queries.

Code

public function forUpdate($set = TRUE) {
  $this->query->forUpdate($set);
  return $this;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.