@ -143,13 +143,13 @@ func add(nd *node, route string, item interface{}) error {
}
return ErrInvalidState
} else {
child := newNode(nil)
children[token] = child
return add(child, route[i+1:], item)
children := nd.getChildren(route)
if child, ok := children[route]; ok {
@ -217,18 +217,18 @@ func unmarshalRows(v interface{}, scanner rowsScanner, strict bool) error {
if err := scanner.Scan(values...); err != nil {
return err
appendFn(value)
default:
return ErrUnsupportedValueType
return nil
return ErrNotSettable