You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In database/sql it could have been done the same way but instead it's an int64 (which is better than an int)
// LastInsertId returns the integer generated by the database
// in response to a command. Typically this will be from an
// "auto increment" column when inserting a new row. Not all
// databases support this feature, and the syntax of such
// statements varies.
LastInsertId() (int64, error)
RowsAffected() (int64, error)
Currently:
int is a signed integer type that is at least 32 bits in size. It is a distinct type, however, and not an alias for, say, int32.
Is there a reason why
len
returns anint
instead of anuint
?Is there a reason why it doesn't return an
uint64
?The text was updated successfully, but these errors were encountered: