diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-14 21:59:24 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-14 21:59:24 +0100 |
commit | 78a3625ddfc67e7e6743a2ff6fd31e1566b174c8 (patch) | |
tree | 620da3a4d8f9e0560f41f8f43f82183f65ccba29 /lib/db.php | |
parent | bcbf2e667badaae382911f9304d0811b17167af6 (diff) | |
download | nextcloud-server-78a3625ddfc67e7e6743a2ff6fd31e1566b174c8.tar.gz nextcloud-server-78a3625ddfc67e7e6743a2ff6fd31e1566b174c8.zip |
final adoptions for mssql connectivity
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/db.php b/lib/db.php index 3ccd51737ae..903f76c8c04 100644 --- a/lib/db.php +++ b/lib/db.php @@ -404,6 +404,13 @@ class OC_DB { $query = self::prepare('SELECT lastval() AS id'); $row = $query->execute()->fetchRow(); return $row['id']; + } + if( $type == 'mssql' ) { + if($table !== null) { + $prefix = OC_Config::getValue( "dbtableprefix", "oc_" ); + $table = str_replace( '*PREFIX*', $prefix, $table ); + } + return self::$connection->lastInsertId($table); }else{ if($table !== null) { $prefix = OC_Config::getValue( "dbtableprefix", "oc_" ); |