added DB2 specific SAVEPOINT grammar

This commit is contained in:
paul 2017-05-01 14:10:31 +12:00
parent dd653705da
commit 92fde4b684

View File

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