Fix PrimaryKey Marshalling and add Bolt test
Based on LevelDB test exactly. Sure enough, it found a bug.
This commit is contained in:
parent
cf3e286d15
commit
bffcd47257
3 changed files with 471 additions and 4 deletions
|
|
@ -74,7 +74,7 @@ func (p *PrimaryKey) String() string {
|
|||
return strconv.FormatInt(p.sequentialID, 10)
|
||||
}
|
||||
|
||||
func (p *PrimaryKey) MarshalJSON() ([]byte, error) {
|
||||
func (p PrimaryKey) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(p.sequentialID)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue