From 206f71a5540a045f17aff905bd463d8ba6082f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Nieto?= <xiam@menteslibres.org> Date: Wed, 10 Oct 2012 14:40:33 -0500 Subject: [PATCH] MongoDB bugfix. --- mongo/mongo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongo/mongo.go b/mongo/mongo.go index af185b63..a2313c4f 100644 --- a/mongo/mongo.go +++ b/mongo/mongo.go @@ -58,7 +58,7 @@ func (c *MongoDataSourceCollection) marshal(where db.Cond) map[string]interface{ chunks := strings.Split(key, " ") if len(chunks) >= 2 { - conds[chunks[0]] = map[string]interface{}{chunks[1]: val} + conds[chunks[0]] = map[string]interface{}{chunks[1]: toInternal(val)} } else { conds[key] = toInternal(val) } -- GitLab