-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abnormal function in rename a property when use of Alter property command #8541
Comments
Hi @hfereidouni |
Hi guys, I'm checking it, I'll let you know asap Thanks Luigi |
Ok, I got the problem, the SQL executor tries to evaluate the new name as an expression and it returns null.
Anyway, I think it makes sense to make it work also without the quotes, so I'm fixing it Thanks Luigi |
Thank you @luigidellaquila :) |
@luigidellaquila Thanks . |
OrientDB Version: 3.0.7
Java Version: 8 u181
OS: macOS 10.13.6
Expected behavior
I have tried to rename a property of a class with this command:
alter property bcd.bcdId name bcd.did
I expected the name attribute has been changed because I didn't get any error with this command and it was ok. Also, I have tried the command below on another class property:
alter property bcc.bccId name cid
Actual behavior
But, the property name attribute just had been changed to NULL and also I couldn't drop the property after this... so, I had to drop the classes, it was ok but very painful.
Steps to reproduce
1- create class bcd extends V
2- create property bcd.bcdId long
3- alter property bcd.bcdId name bcd.did
and
1- create class bcc extends V
2- create property bcc.bccId long
3- alter property bcc.bccId name cid
Hey @saeedtabrizi, do you have any idea about this issue?
The text was updated successfully, but these errors were encountered: