Database improve : new function get_affected returns the number of rows affected by the last query
This commit is contained in:
parent
fc40f2406a
commit
7d9872c458
1 changed files with 7 additions and 0 deletions
|
|
@ -533,6 +533,13 @@ class Database
|
|||
$r=pg_fetch_row($this->ret, 0);
|
||||
return $r[0];
|
||||
}
|
||||
/**
|
||||
* @brief return the number of rows affected by the previous query
|
||||
*/
|
||||
function get_affected()
|
||||
{
|
||||
return Database::num_row($this->ret);
|
||||
}
|
||||
|
||||
/**\brief purpose return the result of a sql statment
|
||||
* in a array
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue