on 2017 Oct 12 6:51 AM
Dear SQLAnywhere community,
When we execute
CREATE TABLE TABLE_1 ( ID INTEGER NOT NULL, CODE VARCHAR(32) NOT NULL, PRIMARY KEY(ID ASC));
followed by a DROP INDEX XYZ-ID-IDX;
We get an "Invalid reference to or operation on constraint 'primary'" error.
Taking into account the fact that the index is done on another table (let say TABLE_2) that has no link with TABLE_1, have any of you got any idea why this comes ?
Hello everyone again, a colleague has found the solution. One has to put fully qualified names in this specific case.
Solution : DROP INDEX TABLE_2.XYZ-ID-IDX;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.