diff --git a/VERSION b/VERSION index 8bb67077..3fdb3bda 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.6 (2012-09-04 15:07:04) stable +Version 2.0.6 (2012-09-04 15:08:58) stable diff --git a/gluon/dal.py b/gluon/dal.py index e6846d0c..8a180561 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -2379,9 +2379,9 @@ class PostgreSQLAdapter(BaseAdapter): if self.driver_name == 'psycopg2': return psycopg2_adapt(obj).getquoted() elif self.driver_name == 'pg8000': - return str(obj).replace("%","%%").replace("'","''") + return "'%s'" % str(obj).replace("%","%%").replace("'","''") else: - return str(obj).replace("'","''") + return "'%s'" % str(obj).replace("'","''") def sequence_name(self,table): return '%s_id_Seq' % table