-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
191 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
-GROUP Set_Transaction | ||
-DATASET CSV tinysnb | ||
|
||
-- | ||
|
||
|
||
#SingleTransactionReadWriteToFixedLengthStructuredNodePropertyNonNullTest | ||
-CASE NonNullTest | ||
-LOG Single Transaction Read Write To Fixed Length Structured Node Property NonNull Test | ||
-STATEMENT BEGIN WRITE TRANSACTION | ||
-STATEMENT MATCH (a:person) WHERE a.ID=0 RETURN a.age; | ||
---- 1 | ||
35 | ||
|
||
-STATEMENT MATCH (a:person) WHERE a.ID = 0 SET a.age = 70; | ||
---- ok | ||
|
||
-STATEMENT MATCH (a:person) WHERE a.ID=0 RETURN a.age; | ||
---- 1 | ||
70 | ||
|
||
#NullTest | ||
-CASE NullTest | ||
-LOG Single Transaction Read Write To Fixed Length Structured Node Property Null Test | ||
-STATEMENT BEGIN WRITE TRANSACTION | ||
-STATEMENT MATCH (a:person) WHERE a.ID=0 RETURN a.age; | ||
---- 1 | ||
35 | ||
|
||
-STATEMENT MATCH (a:person) WHERE a.ID = 0 SET a.age = null; | ||
---- ok | ||
|
||
-STATEMENT MATCH (a:person) WHERE a.ID=0 RETURN a.age; | ||
---- 1 | ||
|
||
#Timeout | ||
-CASE TimeoutErrorTest | ||
-LOG Open Read Only Transaction Triggers Timeout Error For Write Transaction | ||
-CHECKPOINT_WAIT_TIMEOUT 10000 | ||
-CREATE_CONNECTION conn1 | ||
-STATEMENT [conn1] BEGIN READ TRANSACTION; | ||
-CREATE_CONNECTION conn2 | ||
-STATEMENT [conn2] BEGIN WRITE TRANSACTION | ||
-STATEMENT [conn2] MATCH (a:person) WHERE a.ID=0 set a.age=70; | ||
---- ok | ||
-STATEMENT [conn2] COMMIT | ||
---- ok | ||
-STATEMENT [conn1] MATCH (a:person) WHERE a.ID=0 RETURN a.age; | ||
---- 1 | ||
70 | ||
|
||
|
||
#RollbackTest | ||
-CASE RollbackTest | ||
-LOG Set Node Long String Prop Rollback Test | ||
-STATEMENT BEGIN WRITE TRANSACTION; | ||
---- ok | ||
-STATEMENT MATCH (a:person) WHERE a.ID=0 SET a.fName='abcdefghijklmnopqrstuvwxyz' | ||
---- ok | ||
-STATEMENT ROLLBACK | ||
---- ok | ||
-STATEMENT MATCH (a:person) WHERE a.ID=0 RETURN a.fName; | ||
---- 1 | ||
Alice | ||
|
||
#VeryLongStringErrorsTest | ||
-CASE VeryLongStringErrorsTest | ||
-LOG Set Very Long String Errors Test | ||
-STATEMENT BEGIN WRITE TRANSACTION; | ||
---- ok | ||
-DEFINE test_long_string REPEAT 4096 "a" | ||
-STATEMENT MATCH (a:person) WHERE a.ID=0 SET a.fName='${test_long_string}'; | ||
---- ok |
Oops, something went wrong.