orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Should not be able to create functions with the same name.

Open thejjmiller opened this issue 10 years ago • 7 comments

Currently you can create new functions with the same name. This should probably not be allowed and should fail on creation.

thejjmiller avatar Feb 03 '16 17:02 thejjmiller

#4751 This is a question that was posted about the same issue but looks like this was left as a question not as an defect.

thejjmiller avatar Feb 03 '16 17:02 thejjmiller

Hi @thejjmiller

We verified the issue, we are working on it.

In the meantime, as an easy work-around, you can define a UNIQUE index on OFunction.name class, it will prevent from creating two functions with the same name.

Thanks

Luigi

luigidellaquila avatar Feb 03 '16 17:02 luigidellaquila

Thank you. Very good work around.

thejjmiller avatar Feb 03 '16 17:02 thejjmiller

Implemented the check plus some additiona missing api.

tglman avatar Feb 11 '16 07:02 tglman

The fix will be released with 2.1.11

luigidellaquila avatar Feb 11 '16 11:02 luigidellaquila

i haven't backport the fix to 2.1.x yet because i had to add new api to cover all the cases.

anyway the fix is to create an index at OFunctionLibrary, so very similar to the workaround.

tglman avatar Feb 15 '16 01:02 tglman

closing was fixed

tglman avatar May 18 '16 15:05 tglman