-
Notifications
You must be signed in to change notification settings - Fork 872
Commit
- Loading branch information
There are no files selected for viewing
3 comments
on commit f9a136c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test command in console generates following exception:
orientdb {test}> update #54:0 SET Age=4 RETURN BEFORE
Updated
orientdb {test}>
Error: java.util.IllegalFormatConversionException: d != java.util.ArrayList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next problem
orientdb> connect remote:localhost/test root root
Connecting to database [remote:localhost/test] with user 'root'...OK
orientdb {test}> reload record #54:0
ODocument - Class: Actor id: #54:0 v.10
FirstName : Robert
LastName : Pattinson
Age : 1
OK
orientdb {test}> UPDATE #54:0 SET Age=Age+1
Updated 1 record(s) in 0,001000 sec(s).
orientdb {test}> reload record #54:0
ODocument - Class: Actor id: #54:0 v.11
FirstName : Robert
LastName : Pattinson
Age : null
OK
orientdb {test}>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed the console bug. About the update we don't support that, but rather:
UPDATE #9:50 SET Age=eval( 'Age + 1' ) return after
Set the Age = something before to increment.
Another spot you missed the renaming form RETURNING -> RETURN.