Skip to content
Snippets Groups Projects
Commit e6be78ea authored by Russell Sears's avatar Russell Sears
Browse files

Fix MongoDB insert() by adding explicit toString() calls.

parent 48428d6b
No related branches found
No related tags found
No related merge requests found
......@@ -148,8 +148,9 @@ public class MongoDbClient extends DB {
DBCollection collection = db.getCollection(table);
DBObject r = new BasicDBObject().append("_id", key);
r.putAll(values);
for(String k: values.keySet()) {
r.put(k, values.get(k).toString());
}
collection.setWriteConcern(writeConcern);
collection.insert(r);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment