diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-03-22 18:36:40 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-21 23:17:36 +0200 |
commit | e3c5fea989f26a4ad16b841be25ea485c8aad8c4 (patch) | |
tree | 5586ad0984c0a3bf594c8101e02910195580c29d /lib/db/adapteroci8.php | |
parent | cd98ff1eafabf5b10ff67594b65d979a943afe09 (diff) | |
download | nextcloud-server-e3c5fea989f26a4ad16b841be25ea485c8aad8c4.tar.gz nextcloud-server-e3c5fea989f26a4ad16b841be25ea485c8aad8c4.zip |
Move lastInsertId to adapter classes
Diffstat (limited to 'lib/db/adapteroci8.php')
-rw-r--r-- | lib/db/adapteroci8.php | 8 |
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); + } } |