Skip to content
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

JS and JSS in uppercase and lowercase works in different ways #7782

Closed
likemusic opened this issue Oct 2, 2017 · 2 comments
Closed

JS and JSS in uppercase and lowercase works in different ways #7782

likemusic opened this issue Oct 2, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@likemusic
Copy link

OrientDB Version: v2.2.28

Java Version: 1.8.0_144

OS: Windows 7 x64

Expected behavior

Commands should be case-insensitive.
Resulf of JS print('Hello World!') should be the same as js print('Hello World!').

Actual behavior

orientdb {db=StarterHabr}> JS print('Hello World!')
Hello World!

Client side script executed in 0,002000 sec(s). Value returned is: null
orientdb {db=StarterHabr}> js print('Hello World!')
[Started multi-line command. Type just 'end' to finish and execute]
end
Hello World!

Client side script executed in 0,002000 sec(s). Value returned is: null

Uppercase command JS and JSS run the command and not goes to interactive javascript mode.
Lowercase version js and jss goes to interactive javascript mode.

Steps to reproduce

Type and run in console:
JS print('Hello World!')

js print('Hello World!')

@luigidellaquila
Copy link
Member

Hi @likemusic

Thank you very much for reporting, I just checked the docs and you are right, the console is not working as expected. I'm fixing it now

Thanks

Luigi

@luigidellaquila
Copy link
Member

Hi @likemusic

I just pushed a fix on 2.2.x, it will be available in v 2.2.29

Thanks

Luigi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants