Skip to content

Commit

Permalink
check error
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Aug 15, 2023
1 parent f3d5665 commit c927383
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/base/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ func readDatabaseSchema(inputSourceValue string) ([]string, error) {
for rows.Next() {
var entityName string
var entityType string
rows.Scan(&entityName, &entityType)
if err := rows.Scan(&entityName, &entityType); err != nil {
return err
}
isTable := (entityType == "BASE TABLE")
names[entityName] = isTable
}
Expand Down

0 comments on commit c927383

Please sign in to comment.