From ece00a8f52d33a619eb810fd89441120b51044cf Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 26 May 2014 23:43:19 -0500 Subject: [PATCH] fixed 1933:MongoDB adapter passes incorrect query, thanks Alan --- VERSION | 2 +- gluon/dal.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index e1bca154..532cbf1a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.9.5-trunk+timestamp.2014.05.26.22.25.23 +Version 2.9.5-trunk+timestamp.2014.05.26.23.42.22 diff --git a/gluon/dal.py b/gluon/dal.py index bc03939e..d20b8683 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -5862,8 +5862,8 @@ class MongoDBAdapter(NoSQLAdapter): elif field_type: result = self.represent(expression, field_type) elif isinstance(expression, (list, tuple)): - result = ','.join(self.represent(item, field_type) for - item in expression) + result = [self.represent(item, field_type) for + item in expression] else: result = expression return result