summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2011-10-29 11:40:48 +0200
committerBrice Maron <brice@bmaron.net>2011-10-29 11:40:48 +0200
commite533e82bc9526ef9869b20e99b745c210348218f (patch)
tree6ce0621f070c3888e1c34b68b7bf5ae0636add76 /apps/media
parent5ffec927012a98cdcc409318dd1b2a264f071b83 (diff)
downloadnextcloud-server-e533e82bc9526ef9869b20e99b745c210348218f.tar.gz
nextcloud-server-e533e82bc9526ef9869b20e99b745c210348218f.zip
Add sequence name in insertid to be more portable
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/lib_collection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/lib_collection.php b/apps/media/lib_collection.php
index 571cb7e6850..caa3ac3f479 100644
--- a/apps/media/lib_collection.php
+++ b/apps/media/lib_collection.php
@@ -267,7 +267,7 @@ class OC_MEDIA_COLLECTION{
$query=self::$queries['addsong'];
}
$query->execute(array($name,$artist,$album,$path,$uid,$length,$track,$size));
- $songId=OC_DB::insertid();
+ $songId=OC_DB::insertid('*PREFIX*media_songs');
// self::setLastUpdated();
return self::getSongId($name,$artist,$album);
}