diff --git a/schema/utils_test.go b/schema/utils_test.go index 188f4234..23bd82fe 100644 --- a/schema/utils_test.go +++ b/schema/utils_test.go @@ -18,9 +18,9 @@ func TestToDBName(t *testing.T) { "FieldX": "field_x", "HTTPAndSMTP": "http_and_smtp", "HTTPServerHandlerForURLID": "http_server_handler_for_url_id", - "UUID": "uuid", - "HTTPURL": "http_url", - "HTTP_URL": "http_url", + "UUID": "uuid", + "HTTPURL": "http_url", + "HTTP_URL": "http_url", "ThisIsActuallyATestSoWeMayBeAbleToUseThisCodeInGormPackageAlsoIdCanBeUsedAtTheEndAsID": "this_is_actually_a_test_so_we_may_be_able_to_use_this_code_in_gorm_package_also_id_can_be_used_at_the_end_as_id", } diff --git a/statement.go b/statement.go index 4c227304..5e7ba284 100644 --- a/statement.go +++ b/statement.go @@ -79,8 +79,8 @@ type Assignment struct { // Clone clone current statement func (stmt *Statement) Clone() *Statement { - newStatement := *stmt - return &newStatement + // newStatement := *stmt + return &*stmt } // BuildCondition build condition