From 3d6b3d3c2a8a8a68118081db975dd7ab8a8982ef Mon Sep 17 00:00:00 2001 From: Shunta Komatsu Date: Thu, 9 Nov 2023 18:32:39 +0900 Subject: [PATCH] chore: remove the default case to allow unsupported DDL --- loaders/parser.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/loaders/parser.go b/loaders/parser.go index 5558b6b..d4114d7 100644 --- a/loaders/parser.go +++ b/loaders/parser.go @@ -62,8 +62,6 @@ func NewSpannerLoaderFromDDL(fpath string) (*SpannerLoaderFromDDL, error) { continue } return nil, fmt.Errorf("stmt should be CreateTable, CreateIndex or AlterTableAddConstraint, but got '%s'", ddl.SQL()) - default: - return nil, fmt.Errorf("stmt should be CreateTable, CreateIndex or AlterTableAddConstraint, but got '%s'", ddl.SQL()) } }