Hi,

PFA updated patch for issues 1220 and 1221

-- 
*Harshal Dhumal*
*Software Engineer*

EnterpriseDB India: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

On Tue, Jun 21, 2016 at 4:41 PM, Dave Page <dp...@pgadmin.org> wrote:

> Hi
>
> On Tue, Jun 21, 2016 at 11:38 AM, Harshal Dhumal
> <harshal.dhu...@enterprisedb.com> wrote:
> > Hi,
> >
> > PFA patch for issues RM1220 and RM1221
> >
> > Issue fixed: Backup, Restore and Maintenance were causing error with
> > database name  with special characters.
>
> This patch causes the following error when attempting to run a backup:
>
> "quotechar" must be string, not unicode
>
> If I fix that (by wrapping the '' in str()), it then fails with:
>
> need to escape but no escapechar set.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
diff --git a/web/pgadmin/misc/bgprocess/processes.py b/web/pgadmin/misc/bgprocess/processes.py
index 5776687..241c43e 100644
--- a/web/pgadmin/misc/bgprocess/processes.py
+++ b/web/pgadmin/misc/bgprocess/processes.py
@@ -154,12 +154,7 @@ class BatchProcess(object):
         self.ecode = None
 
         # Arguments
-        args_csv_io = StringIO()
-        csv_writer = csv.writer(
-            args_csv_io, delimiter=str(','), quoting=csv.QUOTE_MINIMAL
-        )
-        csv_writer.writerow(_args)
-        self.args = args_csv_io.getvalue().strip(str('\r\n'))
+        self.args = ",".join(str(arg) for arg in _args)
 
         j = Process(
             pid=int(id), command=_cmd, arguments=self.args, logdir=log_dir,
-- 
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to