From dccb4770f1f950295f805b985bb3550ab4a03938 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Sun, 29 Jan 2012 07:28:37 +0400 Subject: [PATCH] Ditto for monger.collection/rename --- src/monger/collection.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/monger/collection.clj b/src/monger/collection.clj index 4a759fb..8d87585 100644 --- a/src/monger/collection.clj +++ b/src/monger/collection.clj @@ -438,8 +438,11 @@ ([^String from, ^String to] (let [^DBCollection coll (.getCollection monger.core/*mongodb-database* from)] (.rename coll to))) - ([^String from, ^String to, ^Boolean drop-target] + ([^String from ^String to ^Boolean drop-target] (let [^DBCollection coll (.getCollection monger.core/*mongodb-database* from)] + (.rename coll to drop-target))) + ([^DB db ^String from ^String to ^Boolean drop-target] + (let [^DBCollection coll (.getCollection db from)] (.rename coll to drop-target)))) ;;