Skip to content

Commit

Permalink
remove alias for DELETE queries (refs #4177)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeelot committed Jul 26, 2012
1 parent 167011c commit dffef9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/kohana/orm.php
Expand Up @@ -865,7 +865,8 @@ protected function _build($type)
$this->_db_builder = DB::update(array($this->_table_name, $this->_object_name));
break;
case Database::DELETE:
$this->_db_builder = DB::delete(array($this->_table_name, $this->_object_name));
// Cannot use an alias for DELETE queries
$this->_db_builder = DB::delete($this->_table_name);
}

// Process pending database method calls
Expand Down

0 comments on commit dffef9d

Please sign in to comment.