"set schema" patch - Mailing list pgadmin-hackers

From Guillaume Lelarge
Subject "set schema" patch
Date
Msg-id 47750EEF.5030904@lelarge.info
Whole thread Raw
Responses Re: "set schema" patch  (Dave Page <dpage@postgresql.org>)
List pgadmin-hackers
Hi,

This patch adds a schema combobox on some objets' dialog : aggregate,
conversion, domain, function, sequence, table, type, view. There are two
EDB objects that probably need it too : package and synonym. Dave, can
you tell me if they are dependants on schema ? and do they use the same
SQL statement to alter their schema ? thanks.

The patch attached is not finished. I have one big issue with it. It
seems I can't alter the schema of a function. The call to ShowObject()
in dlgProperty::apply() fails. It seems this statement
  pgObject *newData=data->Refresh(mainForm->GetBrowser(), item);
crashes pgAdmin (core dump), but I have no clue to explain this. It
don't even know why it crashes with functions, but works with the other
objects.

If I can find a solution to this issue, it'll probably solve this second
(and last) issue. I've put some of my code in comments in OnOK()
function. I wrote this code to refresh the "Schemas" node. It seemed to
work fine Thursday morning, but didn't want to work since. Is there
something wrong with my way to refresh the "Schemas" node? Is there
another way ?

Thanks for any tips.

Regards.


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

Attachment

pgadmin-hackers by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Schema and tablespace
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r6921 - trunk/pgadmin3/i18n/zh_TW