-
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
Strange transaction (Tx) behaviour for edges created within a Tx #8444
Comments
I have the same problem. However I get other error messages. When I run the script above with console I get this result: orientdb> script sql Error: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 Error: java.lang.ClassCastException: com.orientechnologies.orient.core.tx.OTransactionNoTx cannot be cast to com.orientechnologies.orient.core.db.document.OTransactionOptimisticClient Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error parsing query: Encountered " "BEGIN "" at line 1, column 1.
Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error parsing query: Encountered " "BEGIN "" at line 1, column 1.
... |
Hi Luigi, thank you for your answer. However I get the same error message with semicolons (I tried this first). All works fine with version 2.2.27, however I get the error mentioned above with version 3.0.7. See also issue #8419 with the same error message. Martin |
Hi @creisle I found and fixed the problem, the fix is already on 3.0.x branch and will be released with v 3.0.8 Thanks Luigi |
Hi @mbhulin probably the problem is with the CLI console (in Studio it seems to work fine), I'm checking it Thanks Luigi |
thanks @luigidellaquila! |
Hi Luigi, unfortunately the error is still present in 3.0.8 when executing a SQL-script in Console. It works fine when using the batch-mode in Studio. Martin |
OrientDB Version: 2.2.36 (also 3.0.4)
Java Version: 1.8.0_151
OS: centos07
Expected behavior
Expected the transaction to succeed.
Actual behavior
Works when not using the let statements inside a transaction. Does not work within a transaction. It appears to take issue with using the result assigned to a LET after edge creation in a subsequent statement
Steps to reproduce
create a new database
In the console attempt to perform the following transaction
you will see the following error
However if you do the same thing without the transaction it works (18:0 is another edge and 9:0/12:0 are vertices)
The text was updated successfully, but these errors were encountered: