Skip to content

Commit 8d5bfa4

Browse files
committed
bug fix for drop database
1 parent 678f09b commit 8d5bfa4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

server/ast/drop_database.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ func nodeDropDatabase(ctx *Context, node *tree.DropDatabase) (*vitess.DBDDL, err
3131
return nil, errors.Errorf("WITH ( FORCE ) is not yet supported")
3232
}
3333
return &vitess.DBDDL{
34-
Action: vitess.DropStr,
35-
DBName: string(node.Name),
36-
IfExists: node.IfExists,
34+
Action: vitess.DropStr,
35+
SchemaOrDatabase: "database",
36+
DBName: string(node.Name),
37+
IfExists: node.IfExists,
3738
}, nil
3839
}

0 commit comments

Comments
 (0)