This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 148191 - Item "Delete" is disabled
Summary: Item "Delete" is disabled
Status: RESOLVED WONTFIX
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 152818
  Show dependency tree
 
Reported: 2008-09-24 11:54 UTC by Roman Mostyka
Modified: 2009-10-23 09:27 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-09-24 11:54:35 UTC
1. Connect to "travel" Java DB.
2. Rightclick some table and choose "Add Column...".
3. Enter name for the column and press "OK".
4. Rightclick added column.

Result: Item "Delete" exists, but it is disabled, so there is no possibility to remove added column without SQL Editor.
Comment 1 Andrei Badea 2008-09-24 12:42:27 UTC
Which version of Derby? The ability to drop columns was introduced in a relatively recent version (10.3.1.4). Of course,
we do not enable the Delete action for version that do support DROP COLUMN. Still, I would argue this is a P3, because
Derby has not supported this functionality for a long time.
Comment 2 Roman Mostyka 2008-09-24 12:53:19 UTC
I use Derby supplied with GlassFish V2 UR2, version 10.2.2.1.
But I don't agree that this issue is P3, since customer see this item, but can't use it. And it can mislead, since
customer can't know that the ability to drop columns was introduced in a relatively recent version.
Comment 3 Andrei Badea 2008-09-24 15:15:08 UTC
How do you propose that the DB Explorer behave when a version of Derby which doesn't support DROP COLUMN is used?
Comment 4 Roman Mostyka 2008-09-24 15:20:40 UTC
Context menu shouldn't have this item, if it is useless, and customer won't be misled.
Comment 5 Rob Englander 2008-09-24 15:26:11 UTC
I think this should be an enhancement, not a defect.  It is certainly possible to determine
the major and minor version of the database using the meta data.  Support for certain
features of the database engine (like DROP COLUMN) based on minimum version could be stored in a 
plist kind of file.

That sounds like an enhancement.
Comment 6 David Vancouvering 2008-09-24 16:45:11 UTC
I agree adding support for Delete Column on a database that didn't used to support it is an enhancement.  I don't think
it's a P2 to have an action visible but disabled.
Comment 7 Jiri Rechtacek 2009-10-16 14:16:32 UTC
Reassigned to new owner.
Comment 8 Jiri Rechtacek 2009-10-23 09:27:05 UTC
No plan to change it