Skip to content

Commit

Permalink
Add no permission message when fail to create hstore extension
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Jun 14, 2014
1 parent 8be30be commit a89500c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2049,6 +2049,7 @@ func TestHstore(t *testing.T) {
}

if err := db.Exec("CREATE EXTENSION IF NOT EXISTS hstore").Error; err != nil {
fmt.Println("\033[31mHINT: Must be superuser to create hstore extension (ALTER USER gorm WITH SUPERUSER;)\033[0m")
panic(fmt.Sprintf("No error should happen when create hstore extension, but got %+v", err))
}

Expand Down

0 comments on commit a89500c

Please sign in to comment.