1
0
Fork 0
This commit is contained in:
Gregory Eremin 2018-11-08 23:59:31 +01:00
parent 8a22495a0c
commit 9e1f5406c1
1 changed files with 2 additions and 2 deletions

View File

@ -97,12 +97,12 @@ func (b *Buffer) ReadVarLen64(n int) uint64 {
// ReadFloat32 reads a float32 and advances cursor by 4 bytes.
func (b *Buffer) ReadFloat32() float32 {
return b.ReadFloat32()
return mysql.DecodeFloat32(b.Read(4))
}
// ReadFloat64 reads a float64 and advances cursor by 8 bytes.
func (b *Buffer) ReadFloat64() float64 {
return b.ReadFloat64()
return mysql.DecodeFloat64(b.Read(8))
}
// ReadStringNullTerm reads a NULL-terminated string and advances cursor by its