Skip site navigation (1) Skip section navigation (2)

pgAdmin III commit: Fix an error when clicking on "Display objects"

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin III commit: Fix an error when clicking on "Display objects"
Date: 2011-01-30 16:02:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgadmin-hackers
Fix an error when clicking on "Display objects"

The frmRestore::OnEndProcess() function, when it reads the toc information,
should ignore the line which contains the entry for the dumped database
itself. So the current code erroneously tries to find the schema to which
the DATABASE object belongs and gives out the above error. The fix is to
ignore the input line which contains the db information. The pg_restore
binary also seems to do the same.

Report and patch from Nikhil S.


Author: Nikhil S <nixmisc(at)gmail(dot)com>

Modified Files
CHANGELOG                  |    2 ++
pgadmin/frm/frmRestore.cpp |    9 ++++++++-
2 files changed, 10 insertions(+), 1 deletions(-)

pgadmin-hackers by date

Next:From: Guillaume LelargeDate: 2011-01-30 16:02:55
Subject: Re: pgAdmin III: Error on clicking "Display Objects" while doing a restore
Previous:From: Guillaume LelargeDate: 2011-01-30 15:56:21
Subject: Re: Patch to support SSL certificate connections

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group