From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com> |
Cc: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | Re: pgAdmin III commit: Revert the previous change that introduced sysSetti |
Date: | 2011-02-17 19:28:05 |
Message-ID: | AANLkTinDkfQy7MXKJRHKk3Sj-35Cyve6pj57CLsUSp4S@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
On Thu, Feb 17, 2011 at 2:59 PM, Peter Geoghegan
<peter(dot)geoghegan86(at)gmail(dot)com> wrote:
> Whoops. I had a false sense of security from ctlListView, where the
> ambiguity between which is the preferred cast from the double and long
> overloads prevents AppendItem(true) type calls from compiling at all.
> I thought that there were no such calls to Write() overloads here -
> however, there was an implicit cast to int that didn't occur with
> ctlListView, which is what caused the problem.
Yup :-)
> I would like to produce a new patch where we deal with the problem
> correctly, and create multiple, non-overloaded variants plus the
> vanilla string function that is simply called write(), ala wx
> perl/python bindings. That's probably not that hard to do, and is a
> better, safer interface for us to use, considering that these calls
> are fairly prevalent. Objections?
No objections to that, but it does need to handle interoperability
with older versions too. IOW, it needs to read/write booleans as
REG_SZ values of "true" or "false", not REG_DWORDS. There may be other
gotchas too - that's the one I was hitting though.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2011-02-18 14:47:03 | Re: pgAdmin III commit: Revert the previous change that introduced sysSetti |
Previous Message | Peter Geoghegan | 2011-02-17 14:59:23 | Re: pgAdmin III commit: Revert the previous change that introduced sysSetti |