mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Moving common method put from DboMysl into DboSource, this makes more sqlite tests pass
This commit is contained in:
parent
492bcea85f
commit
372123f15a
2 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue