diff --git a/mysql/collection.go b/mysql/collection.go index bc8a153ca528a7b42dcae7f84a8c01c59640bde1..92ef8220447ef2f205c903af62aeedbfc3a306df 100644 --- a/mysql/collection.go +++ b/mysql/collection.go @@ -313,8 +313,8 @@ func (c *table) Append(item interface{}) (interface{}, error) { // Backwards compatibility (int64). if len(keyMap) == 1 { - if numericId, ok := keyMap[pKey[0]].(int64); ok { - return numericId, nil + if numericID, ok := keyMap[pKey[0]].(int64); ok { + return numericID, nil } } diff --git a/postgresql/collection.go b/postgresql/collection.go index 33440cd11a0aed2be9906accc5fc5482b90e1d59..f6bd801ca67b876d594e2cf3dfca330c99193f96 100644 --- a/postgresql/collection.go +++ b/postgresql/collection.go @@ -279,9 +279,9 @@ func (t *table) Append(item interface{}) (interface{}, error) { // Attempt to use LastInsertId() (probably won't work, but the exec() // succeeded, so the error from LastInsertId() is ignored). - lastId, _ := res.LastInsertId() + lastID, _ := res.LastInsertId() - return lastId, nil + return lastID, nil } var rows *sql.Rows diff --git a/sqlite/collection.go b/sqlite/collection.go index 6b55019d094182af749e8a812c3ad989d24d16ef..b1d8e698ec2e701998b3b37ec037a610c3b5b5b8 100644 --- a/sqlite/collection.go +++ b/sqlite/collection.go @@ -315,8 +315,8 @@ func (c *table) Append(item interface{}) (interface{}, error) { // Backwards compatibility (int64). if len(keyMap) == 1 { - if numericId, ok := keyMap[pKey[0]].(int64); ok { - return numericId, nil + if numericID, ok := keyMap[pKey[0]].(int64); ok { + return numericID, nil } }