Skip to content

Commit

Permalink
We can use uint64 now
Browse files Browse the repository at this point in the history
According to go-sql-driver/mysql#332 it's not an issue anymore?
  • Loading branch information
freemanoid authored Apr 8, 2018
1 parent 861d740 commit ce16fdf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions en-US/mvc/model/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ When Field type is int, int32, int64, uint, uint32 or uint64, you can set it as

* If there is no primary key in the model definition, the field `Id` with one of the types above will be considered as auto increment key

Because of the design of go, even if you are using uint64, you can't use it's maximum. It is still treated as int64.

See issue [6113](http://code.google.com/p/go/issues/detail?id=6113)

#### pk

Set as primary key. Used for using other type field as primary key.
Expand Down

0 comments on commit ce16fdf

Please sign in to comment.