1
0
mirror of https://github.com/dg/dibi.git synced 2025-10-22 18:26:13 +02:00

- affectedRows(), insertId(), rowCount() are aliases for getAffectedRows(), getInsertId(), getRowCount()

This commit is contained in:
David Grudl
2009-02-26 20:02:14 +00:00
parent d2f1beba57
commit 2f86997ca7
14 changed files with 109 additions and 55 deletions

View File

@@ -198,7 +198,7 @@ class DibiMySqlDriver extends DibiObject implements IDibiDriver
* Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
* @return int|FALSE number of rows or FALSE on error
*/
public function affectedRows()
public function getAffectedRows()
{
return mysql_affected_rows($this->connection);
}
@@ -209,7 +209,7 @@ class DibiMySqlDriver extends DibiObject implements IDibiDriver
* Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
* @return int|FALSE int on success or FALSE on failure
*/
public function insertId($sequence)
public function getInsertId($sequence)
{
return mysql_insert_id($this->connection);
}
@@ -345,7 +345,7 @@ class DibiMySqlDriver extends DibiObject implements IDibiDriver
* Returns the number of rows in a result set.
* @return int
*/
public function rowCount()
public function getRowCount()
{
if (!$this->buffered) {
throw new DibiDriverException('Row count is not available for unbuffered queries.');