Parse auto-generated IDs as 64-bit ints

This commit is contained in:
boosh 2017-07-28 12:07:57 +01:00
parent 12338c3ff2
commit 4afab65089
1 changed files with 1 additions and 1 deletions

View File

@ -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