Re: Prevent duplicate attributes - Mailing list pgadmin-hackers

From Guillaume Lelarge
Subject Re: Prevent duplicate attributes
Date
Msg-id 1310465498.1993.39.camel@laptop
Whole thread Raw
In response to Re: Prevent duplicate attributes  (Thom Brown <thom@linux.com>)
Responses Re: Prevent duplicate attributes  (Thom Brown <thom@linux.com>)
List pgadmin-hackers
On Tue, 2011-07-12 at 10:55 +0100, Thom Brown wrote:
> On 12 July 2011 10:53, Dave Page <dpage@pgadmin.org> wrote:
> > On Sat, Jul 9, 2011 at 9:02 PM, Thom Brown <thom@linux.com> wrote:
> >> Hi (yes, me... again),
> >>
> >> Tiny patch attached to prevent adding attributes with a duplicate name
> >> to a type.  It seems previous versions prevented this, but must have
> >> been allowed in a commit since the last release.
> >
> > For consistency with the other checks on the dialogue, this should
> > cause the "Add" button to be disabled, not make it silently fail. That
> > should almost certainly be done in dlgType::CheckChange().
>
> Yes, you're right.
>

Does this patch need to be applied after the "overhaul of type
attributes" one?


--
Guillaume
  http://blog.guillaume.lelarge.info
  http://www.dalibo.com


pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: New key shortcuts for query window
Next
From: Thom Brown
Date:
Subject: Re: Prevent duplicate attributes