Skip to content

Commit

Permalink
Database_Query was never updated to reflect the changes made in da2b5f9
Browse files Browse the repository at this point in the history
…, fixes #3022
  • Loading branch information
Woody Gilk committed Jun 28, 2010
1 parent b1beaa8 commit 7ac0f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/kohana/database/query.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ public function compile(Database $db)
/**
* Execute the current query on the given database.
*
* @param mixed Database instance or name of instance
* @param mixed Database instance or name of instance
* @return object Database_Result for SELECT queries
* @return mixed the insert id for INSERT queries
* @return integer number of affected rows for all other queries
*/
public function execute($db = 'default')
public function execute($db = NULL)
{
if ( ! is_object($db))
{
Expand Down

0 comments on commit 7ac0f05

Please sign in to comment.