diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-19 04:43:05 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-19 04:43:05 +0000 |
commit | cd6a08d843d159bb1df4d4fc463477c48b2e59de (patch) | |
tree | 1416b1ac563d21d550df3004287b639e349dc387 /includes/database/mysql | |
parent | f62d41af34e7766176d1c4e18deadfdc369c6ddf (diff) | |
download | brdo-cd6a08d843d159bb1df4d4fc463477c48b2e59de.tar.gz brdo-cd6a08d843d159bb1df4d4fc463477c48b2e59de.tar.bz2 |
#772554 by Crell: Remove delay() method from insert queries.
Diffstat (limited to 'includes/database/mysql')
-rw-r--r-- | includes/database/mysql/query.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/database/mysql/query.inc b/includes/database/mysql/query.inc index 7ea48c8ac..032508870 100644 --- a/includes/database/mysql/query.inc +++ b/includes/database/mysql/query.inc @@ -44,18 +44,16 @@ class InsertQuery_mysql extends InsertQuery { public function __toString() { - $delay = $this->queryOptions['delay'] ? 'DELAYED' : ''; - // Default fields are always placed first for consistency. $insert_fields = array_merge($this->defaultFields, $this->insertFields); // If we're selecting from a SelectQuery, finish building the query and // pass it back, as any remaining options are irrelevant. if (!empty($this->fromQuery)) { - return "INSERT $delay INTO {" . $this->table . '} (' . implode(', ', $insert_fields) . ') ' . $this->fromQuery; + return "INSERT INTO {" . $this->table . '} (' . implode(', ', $insert_fields) . ') ' . $this->fromQuery; } - $query = "INSERT $delay INTO {" . $this->table . '} (' . implode(', ', $insert_fields) . ') VALUES '; + $query = "INSERT INTO {" . $this->table . '} (' . implode(', ', $insert_fields) . ') VALUES '; $max_placeholder = 0; $values = array(); |