Skip to content

Commit 92fde4b

Browse files
author
paul
committed
added DB2 specific SAVEPOINT grammar
1 parent dd65370 commit 92fde4b

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
@@ -193,4 +193,15 @@ public function compileRandom($seed)
193193
{
194194
return "RAND($seed)";
195195
}
196+
197+
/**
198+
* Compile the SQL statement to define a savepoint.
199+
*
200+
* @param string $name
201+
* @return string
202+
*/
203+
public function compileSavepoint($name)
204+
{
205+
return 'SAVEPOINT '.$name.' ON ROLLBACK RETAIN CURSORS';
206+
}
196207
}

0 commit comments

Comments
 (0)