Fix copyIn bug

This commit is contained in:
fwhez 2018-11-12 14:32:10 +08:00
parent 14df8e1022
commit b9230ed3fd

View File

@ -1072,6 +1072,9 @@ func (e Example) TableName() string {
return "example"
}
func TestDB_CopyIn(t *testing.T) {
if DB.Dialect().GetName()!="postgres"{
return
}
if !DB.HasTable(&Example{}) {
if e := DB.CreateTable(&Example{}).Error; e != nil {
t.Fatal(e.Error())