summaryrefslogtreecommitdiffstats
path: root/lib/private/db/oraclemigrator.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/db/oraclemigrator.php')
-rw-r--r--lib/private/db/oraclemigrator.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/db/oraclemigrator.php b/lib/private/db/oraclemigrator.php
index 1a8df2def9c..b80295cbd60 100644
--- a/lib/private/db/oraclemigrator.php
+++ b/lib/private/db/oraclemigrator.php
@@ -37,4 +37,18 @@ class OracleMigrator extends NoCheckMigrator {
protected function generateTemporaryTableName($name) {
return 'oc_' . uniqid();
}
+
+ /**
+ * @param $statement
+ * @return string
+ */
+ protected function convertStatementToScript($statement) {
+ if (substr($statement, -1) === ';') {
+ return $statement . PHP_EOL . '/' . PHP_EOL;
+ }
+ $script = $statement . ';';
+ $script .= PHP_EOL;
+ $script .= PHP_EOL;
+ return $script;
+ }
}