3 Jan
2011
3 Jan
'11
11:06 p.m.
On Mon, 2011-01-03 at 15:53 -0600, Martin Holste wrote:
I see the confusion now. What I did was this:
db.createCollection("test"); { "ok" : 1 } db.getCollection("test").insert({"some.key": 1}); Mon Jan 3 15:10:09 uncaught exception: can't have . in field names [some.key]
This was discussed (and resolved under the following bug): http://jira.mongodb.org/browse/SERVER-1988
It was actually a bug that you could insert keys that contained a dot, and it now errors on it as of Dec 17th 2010.
Aha, I see. Guess my mongodb (1.4.4) from debian squeeze is a bit old then. Well, all the better: I'll do the splitting into sub-documents trick. That will result in a nicer structure anyway. -- |8]