summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-02 19:39:17 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-02 19:39:17 +0000
commita7a0ee83605f8875123bf266b8aed5865732027d (patch)
treefe6d3c2177bf98e17f494f8ad3ba57c5caa5dde9
parent45da508e05293c46015a957550082eae839b7b8b (diff)
downloadbrdo-a7a0ee83605f8875123bf266b8aed5865732027d.tar.gz
brdo-a7a0ee83605f8875123bf266b8aed5865732027d.tar.bz2
- Patch #772554 by Crell, jbrown: remove delay() method from insert queries.
-rw-r--r--CHANGELOG.txt2
-rw-r--r--includes/database/query.inc16
2 files changed, 3 insertions, 15 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 1cff5f7db..36afc04c8 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -7,7 +7,7 @@ Drupal 7.0, xxxx-xx-xx (development version)
* Drupal now requires MySQL >= 5.0.15 or PostgreSQL >= 8.3.
* Added query builders for INSERT, UPDATE, DELETE, MERGE, and SELECT queries.
* Support for master/slave replication, transactions, multi-insert queries,
- delayed inserts, and other features.
+ and other features.
* Added support for the SQLite database engine.
* Default to InnoDB engine, rather than MyISAM, on MySQL when available.
This offers increased scalability and data integrity.
diff --git a/includes/database/query.inc b/includes/database/query.inc
index ef2b29b99..a319e6ede 100644
--- a/includes/database/query.inc
+++ b/includes/database/query.inc
@@ -323,14 +323,6 @@ class InsertQuery extends Query {
protected $table;
/**
- * Whether or not this query is "delay-safe". Different database drivers
- * may or may not implement this feature in their own ways.
- *
- * @var boolean
- */
- protected $delay;
-
- /**
* An array of fields on which to insert.
*
* @var array
@@ -368,7 +360,6 @@ class InsertQuery extends Query {
if (!isset($options['return'])) {
$options['return'] = Database::RETURN_INSERT_ID;
}
- $options += array('delay' => FALSE);
parent::__construct($connection, $options);
$this->table = $table;
}
@@ -471,11 +462,8 @@ class InsertQuery extends Query {
* @return
* The last insert ID of the query, if one exists. If the query
* was given multiple sets of values to insert, the return value is
- * undefined. If the query is flagged "delayed", then the insert ID
- * won't be created until later when the query actually runs so the
- * return value is also undefined. If no fields are specified, this
- * method will do nothing and return NULL. That makes it safe to use
- * in multi-insert loops.
+ * undefined. If no fields are specified, this method will do nothing and
+ * return NULL. That makes it safe to use in multi-insert loops.
*/
public function execute() {
// If validation fails, simply return NULL.