Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
10.3.1.4, 10.3.2.1
-
None
-
Normal
-
Repro attached
Description
Since CREATE INDEX statement succeeds the index should be created, the warning is useful but doesn't imply the index was not created.
Derby allows a single physical index to support multiple logical indexes so allowing the index to be created should be fine.
ij> create table t(i int);
0 rows inserted/updated/deleted
ij> create index ti1 on t;
0 rows inserted/updated/deleted
ij> create index ti2 on t;
0 rows inserted/updated/deleted
WARNING 01504: The new index is a duplicate of an existing index: TI1.
ij> drop index ti2;
ERROR 42X65: Index 'TI2' does not exist.
Attachments
Issue Links
- is related to
-
DERBY-991 Defining the same primary key twice on a table actually attempts to create two constraints.
- Open
-
DERBY-6269 Misleading warning text if you create an index duplicating a constraint.
- Closed
-
DERBY-789 Usability issue: "Constraints have the same set of columns"
- Open