Merge pull request #28 from pulasthibandara/patch-4

added DB2 specific SAVEPOINT grammar
This commit is contained in:
Cooperl Arc Atlantique 2017-07-27 09:22:34 +02:00 committed by GitHub
commit 8331aa8551

View File

@ -198,4 +198,15 @@ class DB2Grammar extends Grammar
{ {
$this->dateFormat = $dateFormat; $this->dateFormat = $dateFormat;
} }
/**
* Compile the SQL statement to define a savepoint.
*
* @param string $name
* @return string
*/
public function compileSavepoint($name)
{
return 'SAVEPOINT '.$name.' ON ROLLBACK RETAIN CURSORS';
}
} }