From b9230ed3fd25b51d7f225c2fe40aa757d08f9936 Mon Sep 17 00:00:00 2001 From: fwhez <1728565484@qq.com> Date: Mon, 12 Nov 2018 14:32:10 +0800 Subject: [PATCH] Fix copyIn bug --- main_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main_test.go b/main_test.go index 88a2852f..202ba718 100644 --- a/main_test.go +++ b/main_test.go @@ -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())