Open MerielP opened 8 years ago
One additional thing I've just noticed: ORDS seems to be editing the primary key name after one has saved it (I called a primary key 'Places', but when I went back into the Keys dialogue box, it had become 'Places_2'). This doesn't matter particularly from the user's perspective, but if ORDS is just going to change what I put in that field anyway, I don't see why it can't complete it without needing me to type something there!
To reproduce this bug:
At this stage, you will get a pop-up error message saying 'There was an error when dealing with your request. See the error console for more details'. However, there's no further indication of what the error is, and no clues about where the error console is or how one might view it.
After dismissing the error message, it looks as though everything has worked as it should: the field just selected as the new primary key is in bold.
However, if you save changes, exit the schema designer, and re-open it, it becomes plain that there is a problem. The field name is no longer in bold - so the table no longer has a primary key.
This problem can be avoided by putting something in the 'Name' field when adding the new primary key: if that's done, the error message doesn't appear, and the primary key stays in place after exiting and re-entering the schema designer. However, it's far from obvious that this is what you need to do, and the current error message is not at all helpful.
There are two possible solutions to this that I can see: