blob: 254ecc4eeb172411204987f6bd7e14c0d5324dda [file] [log] [blame]
vinayakb5ee049d2013-04-06 21:21:29 +00001/*
2 * Description : Tests syntax error for the changed dataset access syntax
3 * Expected Result: Syntax Error from parser
4 * Date: March 6th 2013
5 */
6drop dataverse test if exists;
7create dataverse test;
8use dataverse test;
9
10create type Employee as closed {
11id: int32,
12name: string,
13salary: int32
14}
15
16create dataset Office(Employee)
17primary key id;
18
19insert into dataset Office({"id": 1, "name": "clerk#1", "salary":120000});
20
21for $t in dataset 'test.Office'
22return $t