summaryrefslogtreecommitdiffstats
path: root/lib/db/adapteroci8.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/db/adapteroci8.php')
-rw-r--r--lib/db/adapteroci8.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/db/adapteroci8.php b/lib/db/adapteroci8.php
index 7ffff4909e7..50c4d078243 100644
--- a/lib/db/adapteroci8.php
+++ b/lib/db/adapteroci8.php
@@ -10,4 +10,12 @@
namespace OC\DB;
class AdapterOCI8 extends Adapter {
+ public function lastInsertId($table) {
+ if($table !== null) {
+ $suffix = '_SEQ';
+ $table = '"'.$table.$suffix.'"';
+ $table = $this->conn->replaceTablePrefix( $table );
+ }
+ return $this->conn->lastInsertId($table);
+ }
}