-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.4.8
-
Component/s: None
-
1
-
Empty show more show less
When trying to ensure a unique index :
Using the shell :
`db.my_collection.ensureIndex(
,
{unique: true, safe: true})`
-> "errmsg" : "E11000 duplicate key error index: planotemp.my_collection.$field1_1_ field2_1 dup key: { : \"1319530\", : 360 }"
Using the driver :
db.collection('my_collection').ensureIndex(
,
{ unique: true, safe: true }, function(err, res) {});
-> `err` is null