Skip to content

my primary key is bigint but sql.LastInsertId return int64 #52118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
smithyj opened this issue Apr 2, 2022 · 1 comment
Closed

my primary key is bigint but sql.LastInsertId return int64 #52118

smithyj opened this issue Apr 2, 2022 · 1 comment

Comments

@smithyj
Copy link

smithyj commented Apr 2, 2022

func (RowsAffected) LastInsertId() (int64, error) {

my primary key is unsigned bigint but sql.LastInsertId() return int64, should be return uint64

@seankhliao
Copy link
Member

Duplicate of #19055

@seankhliao seankhliao marked this as a duplicate of #19055 Apr 2, 2022
@golang golang locked and limited conversation to collaborators Apr 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants