Commit Graph

5 Commits

Author SHA1 Message Date
Jun Jie Nan 472c70caa4 Check valuer interface before scan value (#2155)
Scan interface only accept int64, float64, bool, []byte, string,
time.Time or nil. When do scan, it's better to check whether the type
support valuer interface and do convert.
2018-11-03 22:14:39 +08:00
Eyal Posener 123d4f50ef lock TagSettings structure when modified (#1796)
The map is modified in different places in the code which results in race conditions
on execution.
This commit locks the map with read-write lock when it is modified
2018-09-10 07:11:00 +08:00
Jinzhu 3055bad1e8 scope.Fields() return slice of *Field 2016-03-07 14:25:41 +08:00
Jinzhu 84942c60b8 Include tag settings when clone a StructField 2016-01-08 09:02:01 +08:00
Jinzhu edc1f78530 Fix calculate fields for the first time 2015-09-11 07:36:48 +08:00