Skip to content

Commit

Permalink
Handle returning error correctly if index creation of primary key fails
Browse files Browse the repository at this point in the history
  • Loading branch information
eatonphil committed Apr 30, 2020
1 parent b9716af commit 8d18cee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ func (mb *MemoryBackend) CreateTable(crt *CreateTableStatement) error {
})
if err != nil {
delete(mb.tables, t.name)
return err
}
}

Expand Down

0 comments on commit 8d18cee

Please sign in to comment.