Moving common method put from DboMysl into DboSource, this makes more sqlite tests pass

This commit is contained in:
José Lorenzo Rodríguez 2010-11-28 22:45:56 -04:30
parent 492bcea85f
commit 372123f15a
2 changed files with 10 additions and 10 deletions

View file

@ -202,16 +202,6 @@ class DboMysql extends DboSource {
}
}
/**
* Returns the ID generated from the previous INSERT operation.
*
* @param unknown_type $source
* @return in
*/
function lastInsertId($source = null) {
return $this->_connection->lastInsertId();
}
/**
* Builds a map of the columns contained in a result
*

View file

@ -1962,6 +1962,16 @@ class DboSource extends DataSource {
return false;
}
/**
* Returns the ID generated from the previous INSERT operation.
*
* @param unknown_type $source
* @return in
*/
function lastInsertId($source = null) {
return $this->_connection->lastInsertId();
}
/**
* Creates a default set of conditions from the model if $conditions is null/empty.
* If conditions are supplied then they will be returned. If a model doesn't exist and no conditions