Skip to content

Commit 8331aa8

Browse files
authored
Merge pull request #28 from pulasthibandara/patch-4
added DB2 specific SAVEPOINT grammar
2 parents 9f04123 + 92fde4b commit 8331aa8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Query/Grammars/DB2Grammar.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,15 @@ public function setDateFormat($dateFormat)
198198
{
199199
$this->dateFormat = $dateFormat;
200200
}
201+
202+
/**
203+
* Compile the SQL statement to define a savepoint.
204+
*
205+
* @param string $name
206+
* @return string
207+
*/
208+
public function compileSavepoint($name)
209+
{
210+
return 'SAVEPOINT '.$name.' ON ROLLBACK RETAIN CURSORS';
211+
}
201212
}

0 commit comments

Comments
 (0)