blob: 910361474594a6ebd60c0aebd4c2a851bdd14e5b [file] [log] [blame]
alexander.behmfd2223f2012-10-02 01:57:57 +00001/*
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.com146d4632012-11-26 08:14:29 +00007
alexander.behmfd2223f2012-10-02 01:57:57 +00008drop dataverse test if exists;
9create dataverse test;
10use dataverse test;
11
12create type FooType as closed {
13 bar: int32?
14};
15
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000016
alexander.behmfd2223f2012-10-02 01:57:57 +000017drop type FooType;
18
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000019write output to nc1:"mdtest/basic_meta14.adm";
alexander.behmfd2223f2012-10-02 01:57:57 +000020
RamanGrover29@gmail.com146d4632012-11-26 08:14:29 +000021count(
22for $x in dataset('Metadata.Datatype')
23where $x.DataverseName='test'
24return $x
25)
26
27drop dataverse test;