Parse auto-generated IDs as 64-bit ints
This commit is contained in:
parent
12338c3ff2
commit
4afab65089
|
@ -168,7 +168,7 @@ func (d *Driver) WriteAutoId(collection string, v interface{}) (resourceId int64
|
|||
|
||||
baseName := strings.TrimSuffix(lastFile.Name(), ext)
|
||||
|
||||
resourceId, err = strconv.ParseInt(baseName, 10, 8)
|
||||
resourceId, err = strconv.ParseInt(baseName, 10, 64)
|
||||
if err != nil {
|
||||
fmt.Printf("Error parsing string '%s' as integer", baseName, err.Error())
|
||||
return resourceId, err
|
||||
|
|
Loading…
Reference in New Issue