Add getAffectedRows() and getInsertID() to DB classes

쿼리 실행 후 affected rows, last insert ID 값을 받아올 수 있도록
DB 클래스에 관련 메소드를 추가함
This commit is contained in:
Kijin Sung 2018-01-15 13:59:14 +09:00
parent 8ef0d05ecb
commit fa2b2914f2
5 changed files with 106 additions and 9 deletions

View file

@ -1213,6 +1213,23 @@ class DB
return $dbParser;
}
/**
* Get the number of rows affected by the last query
* @return int
*/
public function getAffectedRows()
{
return -1;
}
/**
* Get the ID generated in the last query
* @return int
*/
public function getInsertID()
{
return 0;
}
}
/* End of file DB.class.php */
/* Location: ./classes/db/DB.class.php */