cleaning up code.

This commit is contained in:
Taylor Otwell 2012-06-03 17:44:53 -05:00
parent f608157ffc
commit ba6590d7b1
2 changed files with 1 additions and 13 deletions

View File

@ -143,7 +143,7 @@ public static function profile()
*/ */
public static function last_query() public static function last_query()
{ {
return Database\Connection::last_query(); return end(Database\Connection::$queries);
} }
/** /**

View File

@ -332,17 +332,5 @@ public function __call($method, $parameters)
{ {
return $this->table($method); return $this->table($method);
} }
/**
* Get the last query that was executed.
*
* Returns false if no queries have been executed yet.
*
* @return string
*/
public static function last_query()
{
return end(static::$queries);
}
} }