Commit 231be655 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 5a5934db
......@@ -153,11 +153,9 @@ class Doctrine_Connection_Mssql extends Doctrine_Connection {
*
* @param string $table name of the table into which a new row was inserted
* @param string $field name of the field into which a new row was inserted
* @return mixed MDB2 Error Object or id
* @access public
* @return integer
*/
function lastInsertID($table = null, $field = null)
{
public function lastInsertID($table = null, $field = null) {
$server_info = $this->getServerVersion();
if (is_array($server_info)
&& !is_null($server_info['major'])
......@@ -167,7 +165,7 @@ class Doctrine_Connection_Mssql extends Doctrine_Connection {
$query = "SELECT @@IDENTITY";
}
return $this->queryOne($query, 'integer');
return $this->queryOne($query);
}
}
......@@ -80,7 +80,7 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common {
*
* @return integer
*/
public function nextID($seqName, $ondemand = true) {
public function nextId($seqName, $ondemand = true) {
$sequenceName = $this->quoteIdentifier($this->getSequenceName($seqName), true);
$seqcolName = $this->quoteIdentifier($this->getAttribute(Doctrine::ATTR_SEQCOL_NAME), true);
$query = 'INSERT INTO ' . $sequenceName . ' (' . $seqcolName . ') VALUES (NULL)';
......@@ -99,7 +99,7 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common {
* @param string $seq_name name of the sequence
* @return integer
*/
public function currID($seqName) {
public function currId($seqName) {
$sequenceName = $this->quoteIdentifier($this->getSequenceName($seqName), true);
$seqcolName = $this->quoteIdentifier($this->options['seqcol_name'], true);
$query = 'SELECT MAX(' . $seqcolName . ') FROM ' . $sequenceName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment