alexander.behm | fd2223f | 2012-10-02 01:57:57 +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 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 7 | |
alexander.behm | fd2223f | 2012-10-02 01:57:57 +0000 | [diff] [blame] | 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 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 16 | |
alexander.behm | fd2223f | 2012-10-02 01:57:57 +0000 | [diff] [blame] | 17 | drop type FooType; |
| 18 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 19 | write output to nc1:"mdtest/basic_meta14.adm"; |
alexander.behm | fd2223f | 2012-10-02 01:57:57 +0000 | [diff] [blame] | 20 | |
RamanGrover29@gmail.com | 146d463 | 2012-11-26 08:14:29 +0000 | [diff] [blame] | 21 | count( |
| 22 | for $x in dataset('Metadata.Datatype') |
| 23 | where $x.DataverseName='test' |
| 24 | return $x |
| 25 | ) |
| 26 | |
| 27 | drop dataverse test; |