From dc3c74141a245362e5348ec70185f8d53d0c5482 Mon Sep 17 00:00:00 2001 From: Zach Musgrave Date: Wed, 22 May 2024 17:04:41 -0700 Subject: [PATCH] bug fix --- go/libraries/doltcore/doltdb/root_val.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go/libraries/doltcore/doltdb/root_val.go b/go/libraries/doltcore/doltdb/root_val.go index d1c04c4e22..65552233c6 100644 --- a/go/libraries/doltcore/doltdb/root_val.go +++ b/go/libraries/doltcore/doltdb/root_val.go @@ -878,6 +878,10 @@ func (root *rootValue) RenameTable(ctx context.Context, oldName, newName TableNa } func (root *rootValue) RemoveTables(ctx context.Context, skipFKHandling bool, allowDroppingFKReferenced bool, tables ...TableName) (RootValue, error) { + if len(tables) == 0 { + return root, nil + } + // TODO: support multiple schemas in same operation, or make an error tableMap, err := root.getTableMap(ctx, tables[0].Schema) if err != nil {