Skip to content

Commit 6cd4ac5

Browse files
committed
docs: more comment
1 parent e13845d commit 6cd4ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (v VersionUpdateClause) ModifyStatement(stmt *gorm.Statement) {
128128
}
129129
}
130130

131-
// struct to map
131+
// struct to map. version column is int64, but need set its value to string
132132
dv := reflect.ValueOf(stmt.Dest)
133133
if reflect.Indirect(dv).Kind() == reflect.Struct {
134134
selectColumns, restricted := stmt.SelectAndOmitColumns(false, true)

0 commit comments

Comments
 (0)