1
0
mirror of https://github.com/golang/go synced 2024-11-23 21:50:08 -07:00

Improve unimplemented LastInsertId error message

The old one was rather confusing - it makes it sound like the user has done something wrong.
This commit is contained in:
Tim 2018-10-03 10:03:38 +01:00 committed by GitHub
parent 8919fe9e4d
commit 09290accdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -469,7 +469,7 @@ type RowsAffected int64
var _ Result = RowsAffected(0)
func (RowsAffected) LastInsertId() (int64, error) {
return 0, errors.New("no LastInsertId available")
return 0, errors.New("LastInsertId is not supported by this driver")
}
func (v RowsAffected) RowsAffected() (int64, error) {