Skip to content

Commit

Permalink
Merge pull request #28 from pulasthibandara/patch-4
Browse files Browse the repository at this point in the history
added DB2 specific SAVEPOINT grammar
  • Loading branch information
cooperl22 authored Jul 27, 2017
2 parents 9f04123 + 92fde4b commit 8331aa8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Query/Grammars/DB2Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,15 @@ public function setDateFormat($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';
}
}

0 comments on commit 8331aa8

Please sign in to comment.