From: Mark Huang Date: Tue, 24 Oct 2006 13:47:05 +0000 (+0000) Subject: accept sets when quoting X-Git-Tag: pycurl-7_13_1~469 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=71f8959d64baea3c29d02bbd69396332c8c1c6cb;p=plcapi.git accept sets when quoting --- diff --git a/PLC/PostgreSQL.py b/PLC/PostgreSQL.py index 33fe0748..534a27a7 100644 --- a/PLC/PostgreSQL.py +++ b/PLC/PostgreSQL.py @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: PostgreSQL.py,v 1.5 2006/10/16 21:56:11 mlhuang Exp $ +# $Id: PostgreSQL.py,v 1.6 2006/10/20 17:53:42 mlhuang Exp $ # import pgdb @@ -39,7 +39,7 @@ class PostgreSQL: # pgdb._quote functions are good enough for general SQL quoting if hasattr(params, 'has_key'): params = pgdb._quoteitem(params) - elif isinstance(params, list) or isinstance(params, tuple): + elif isinstance(params, list) or isinstance(params, tuple) or isinstance(params, set): params = map(pgdb._quote, params) else: params = pgdb._quote(params)