CREATE INDEX that matches an existing index succeeds with a 01504 warning but
does not create the index.
--------------------------------------------------------------------------------------------------------
Key: DERBY-3300
URL: https://issues.apache.org/jira/browse/DERBY-3300
Project: Derby
Issue Type: Bug
Components: SQL
Affects Versions: 10.3.2.1, 10.3.1.4
Reporter: Daniel John Debrunner
Priority: Minor
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(i);
0 rows inserted/updated/deleted
ij> create index ti2 on t(i);
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.