mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
Add getAffectedRows() and getInsertID() to DB classes
쿼리 실행 후 affected rows, last insert ID 값을 받아올 수 있도록 DB 클래스에 관련 메소드를 추가함
This commit is contained in:
parent
8ef0d05ecb
commit
fa2b2914f2
5 changed files with 106 additions and 9 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue