Merge branch 'master' into scope_after_scan_method_callback

This commit is contained in:
Moises P. Sena 2018-02-20 18:01:40 -03:00 committed by GitHub
commit c23c829d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,6 +94,7 @@ var ParseFieldStructForDialect = func(field *StructField, dialect Dialect) (fiel
}
// Get scanner's real value
if dataType == "" {
var getScannerValue func(reflect.Value)
getScannerValue = func(value reflect.Value) {
fieldValue = value
@ -102,6 +103,7 @@ var ParseFieldStructForDialect = func(field *StructField, dialect Dialect) (fiel
}
}
getScannerValue(fieldValue)
}
// Default Size
if num, ok := field.TagSettings["SIZE"]; ok {