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