cleaning up code.
This commit is contained in:
parent
f608157ffc
commit
ba6590d7b1
|
@ -143,7 +143,7 @@ public static function profile()
|
|||
*/
|
||||
public static function last_query()
|
||||
{
|
||||
return Database\Connection::last_query();
|
||||
return end(Database\Connection::$queries);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -332,17 +332,5 @@ public function __call($method, $parameters)
|
|||
{
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue