Merge pull request #28 from pulasthibandara/patch-4
added DB2 specific SAVEPOINT grammar
This commit is contained in:
commit
8331aa8551
@ -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';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user