Re: Beta 2 Wednesday?

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Dave Page <dpage(at)postgresql(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Beta 2 Wednesday?
Date: 2007-07-28 17:29:47
Message-ID: 46AB7D0B.5090506@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Dave Page a écrit :
> Guillaume Lelarge wrote:
>> Sorry, I still reproduce it under PostgreSQL 8.2.4+ and PostgreSQL HEAD.
>>
>> Here are steps to reproduce problem :
>> - right click on a function
>> - choose Properties
>> - change function's name
>>
>> OK button will not be enabled, SQL string will not show.
>
> Are you sure you're running the build you think you are? Following the
> steps you detail above works perfectly on PostgreSQL 8.2.4 and
> EnterpriseDB AS 8.2 for me. I've tried C, pl/pgsql and edbspl functions
> (though the latter only on EDB of course).
>
> Not that it should matter, but this is SVN head of pgAdmin, running on XP.
>

OK, I think I've found a fix to Pavel's issue. To check cbLanguage, we
use GetCurrentSelection. When I try to change an already defined
function, GetCurrentSelection always returns -1 which is an invalid
value. If I use GetGuessedSelection (with every other changes needed to
use ctlComboBox instead of wxComboBox), it works great. I'm not sure
this is the right way to fix this, so here is the patch.

As always, comments welcomed.

Regards.

--
Guillaume.
<!-- http://abs.traduc.org/
http://lfs.traduc.org/
http://docs.postgresqlfr.org/ -->

Attachment Content-Type Size
function_cblanguage.patch text/x-patch 3.0 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Guillaume Lelarge 2007-07-28 17:30:34 Re: Issue on compiling pgAdmin trunk
Previous Message svn 2007-07-28 17:24:20 SVN Commit by guillaume: r6508 - in trunk/pgadmin3/pgadmin: debugger include/debugger