Skip to content

Commit

Permalink
fix: skip empty DDL statements (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
asetty authored Jan 16, 2025
1 parent 74bbcbf commit 8249bb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/spanner/memefish.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ func toStatements(filename string, data []byte) ([]string, error) {
if err != nil {
return nil, err
}
result = append(result, stripped)
if len(stripped) != 0 {
result = append(result, stripped)
}
}
return result, nil
}
Expand Down

0 comments on commit 8249bb7

Please sign in to comment.