From 372123f15a16ea99771c3741bda20940bdeb2561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Sun, 28 Nov 2010 22:45:56 -0430 Subject: [PATCH] Moving common method put from DboMysl into DboSource, this makes more sqlite tests pass --- cake/libs/model/datasources/dbo/dbo_mysql.php | 10 ---------- cake/libs/model/datasources/dbo_source.php | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cake/libs/model/datasources/dbo/dbo_mysql.php b/cake/libs/model/datasources/dbo/dbo_mysql.php index 5936b0958..069cf089a 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysql.php +++ b/cake/libs/model/datasources/dbo/dbo_mysql.php @@ -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 * diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index f59fd0e72..44e7c758d 100755 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -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