Skip to content

Commit

Permalink
Add stub method for reseting sequences.
Browse files Browse the repository at this point in the history
This method needs to be implemented, but first sequence reflection needs
to be implemented in schema + postgres.
  • Loading branch information
markstory committed May 25, 2013
1 parent b54795c commit 7d34e29
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lib/Cake/Database/Connection.php
Expand Up @@ -413,7 +413,7 @@ public function releaseSavePoint($name) {
}

/**
* Rollsback a save point by its name
* Rollback a save point by its name
*
* @param string $name
* @return void
Expand All @@ -422,6 +422,19 @@ public function rollbackSavepoint($name) {
$this->execute($this->_driver->rollbackSavePointSQL($name));
}

/**
* Reset a sequence.
*
* Useful with database platforms that support sequences.
*
* @param string $table The table to reset.
* @param string $key The key to reset.
* @return boolean
*/
public function resetSequence($table, $key) {
// TODO implement this.
}

/**
* Quotes value to be used safely in database query
*
Expand Down

0 comments on commit 7d34e29

Please sign in to comment.