Skip to content

Commit f87c4ee

Browse files
committed
more tests
1 parent 3d713fa commit f87c4ee

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

testing/go/schemas_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,26 @@ var SchemaTests = []ScriptTest{
918918
Skip: true, // not implemented yet
919919
Query: "drop schema hasTables cascade;",
920920
},
921+
{
922+
Query: "create schema hastype;",
923+
},
924+
{
925+
Query: "create type hastype.mytype as enum('a', 'b', 'c');",
926+
},
927+
{
928+
Query: "DROP SCHEMA hastype;",
929+
ExpectedErr: "cannot drop schema hastype because other objects depend on it",
930+
},
931+
{
932+
Query: "create schema hassequence;",
933+
},
934+
{
935+
Query: "create sequence hassequence.myseq start 1 increment 1;",
936+
},
937+
{
938+
Query: "DROP SCHEMA hassequence;",
939+
ExpectedErr: "cannot drop schema hassequence because other objects depend on it",
940+
},
921941
},
922942
},
923943
// More tests:

0 commit comments

Comments
 (0)