/* | |
* Description : Tests syntax error for the changed dataset access syntax | |
* Expected Result: Syntax Error from parser | |
* Date: March 6th 2013 | |
*/ | |
drop dataverse test if exists; | |
create dataverse test; | |
use dataverse test; | |
create type Employee as closed { | |
id: int32, | |
name: string, | |
salary: int32 | |
} | |
create dataset Office(Employee) | |
primary key id; | |
insert into dataset Office({"id": 1, "name": "clerk#1", "salary":120000}); | |
for $t in dataset 'test.Office' | |
return $t |