Fix copyIn bug
This commit is contained in:
parent
14df8e1022
commit
b9230ed3fd
@ -1072,6 +1072,9 @@ func (e Example) TableName() string {
|
|||||||
return "example"
|
return "example"
|
||||||
}
|
}
|
||||||
func TestDB_CopyIn(t *testing.T) {
|
func TestDB_CopyIn(t *testing.T) {
|
||||||
|
if DB.Dialect().GetName()!="postgres"{
|
||||||
|
return
|
||||||
|
}
|
||||||
if !DB.HasTable(&Example{}) {
|
if !DB.HasTable(&Example{}) {
|
||||||
if e := DB.CreateTable(&Example{}).Error; e != nil {
|
if e := DB.CreateTable(&Example{}).Error; e != nil {
|
||||||
t.Fatal(e.Error())
|
t.Fatal(e.Error())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user