Skip to content
Permalink
Browse files

Add stub method for reseting sequences.

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 7d34e2993d16057c424a8012a67d8d4810ea751c
Showing with 14 additions and 1 deletion.
  1. +14 −1 lib/Cake/Database/Connection.php
@@ -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
@@ -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
*

0 comments on commit 7d34e29

Please sign in to comment.
You can’t perform that action at this time.