From fe5086ac124c901833d5b095278c0d5edd4df6e0 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 28 Sep 2012 16:17:52 +0530 Subject: [PATCH] allow dictobj as parameter --- webnotes/db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webnotes/db.py b/webnotes/db.py index 9880e0ca5b..57e0d90c5f 100644 --- a/webnotes/db.py +++ b/webnotes/db.py @@ -137,6 +137,8 @@ class Database: # execute try: if values!=(): + if isinstance(values, dict): + values = dict(values) if debug: webnotes.errprint(query % values) self._cursor.execute(query, values)