From 83b81ffd87d3f8efc0ba1dff783f38caf4b56cb9 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Thu, 28 Apr 2011 21:37:34 -0400 Subject: [PATCH] Removed more methods that is implemented by DboSource. --- lib/Cake/Model/Datasource/Database/Mssql.php | 52 -------------------- 1 file changed, 52 deletions(-) diff --git a/lib/Cake/Model/Datasource/Database/Mssql.php b/lib/Cake/Model/Datasource/Database/Mssql.php index 0d5b4fc93..7bcefc203 100644 --- a/lib/Cake/Model/Datasource/Database/Mssql.php +++ b/lib/Cake/Model/Datasource/Database/Mssql.php @@ -338,58 +338,6 @@ class Mssql extends DboSource { return parent::update($model, array_keys($fields), array_values($fields), $conditions); } -/** - * Returns a formatted error message from previous database operation. - * - * @return string Error message with error number - */ - function lastError() { - if ($this->__lastQueryHadError) { - $error = mssql_get_last_message(); - if ($error && !preg_match('/contexto de la base de datos a|contesto di database|changed database|contexte de la base de don|datenbankkontext/i', $error)) { - return $error; - } - } - return null; - } - -/** - * Returns number of affected rows in previous database operation. If no previous operation exists, - * this returns false. - * - * @return integer Number of affected rows - */ - function lastAffected() { - if ($this->_result) { - return mssql_rows_affected($this->connection); - } - return null; - } - -/** - * Returns number of rows in previous resultset. If no previous resultset exists, - * this returns false. - * - * @return integer Number of rows in resultset - */ - function lastNumRows() { - if ($this->_result) { - return @mssql_num_rows($this->_result); - } - return null; - } - -/** - * Returns the ID generated from the previous INSERT operation. - * - * @param unknown_type $source - * @return in - */ - function lastInsertId($source = null) { - $id = $this->fetchRow('SELECT SCOPE_IDENTITY() AS insertID', false); - return $id[0]['insertID']; - } - /** * Returns a limit statement in the correct format for the particular database. *