jarodwen | cbbab14 | 2013-02-01 07:56:46 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Description : Test that a synthetically created content type is dropped with its parent type. |
| 3 | * Guards against regression to issue 188. |
| 4 | * Expected Result : Success |
| 5 | */ |
| 6 | |
| 7 | |
| 8 | drop dataverse test if exists; |
| 9 | create dataverse test; |
| 10 | use dataverse test; |
| 11 | |
| 12 | create type FooType as closed { |
| 13 | bar: int32? |
| 14 | }; |
| 15 | |
| 16 | |
| 17 | drop type FooType; |
| 18 | |
| 19 | write output to nc1:"mdtest/basic_meta14.adm"; |
| 20 | |
| 21 | count( |
| 22 | for $x in dataset('Metadata.Datatype') |
| 23 | where $x.DataverseName='test' |
| 24 | return $x |
| 25 | ) |
| 26 | |
| 27 | drop dataverse test; |