From 71f8959d64baea3c29d02bbd69396332c8c1c6cb Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Tue, 24 Oct 2006 13:47:05 +0000 Subject: [PATCH] accept sets when quoting --- PLC/PostgreSQL.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.0