blob: 52c4384ca820c9a26a49c0f425a999054780d1e8 [file] [log] [blame]
salsubaiee201be382013-07-16 17:50:33 -07001/*
2 * Test case Name : insert-and-scan-dataset.aql
3 * Description : This test is intended to test inserting into a dataset and scan it at the same time
4 * where we insert a materializing to prevent the possibility of deadlatch.
5 * Expected Result : Success
6 * Date : July 11 2013
7 */
8
9drop dataverse test if exists;
10create dataverse test;
11
12use dataverse test;
13
14create type myDataType as open {
15 id: int32
16}
17
18create dataset myData(myDataType)
19 primary key id;
20
21insert into dataset myData (
22for $x in dataset myData
23return {
24 "id": $x.id + 1
25}
26);