mysql: Null value should not be considered as previous value

fixes #8655
This commit is contained in:
Daniel Lee 2017-06-20 02:02:05 +02:00
parent 2a93bed453
commit 2479e51a6b

View File

@ -307,6 +307,9 @@ func (s *stringStringScan) Update(rows *sql.Rows) error {
return err
}
s.time = null.FloatFromPtr(nil)
s.value = null.FloatFromPtr(nil)
for i := 0; i < s.columnCount; i++ {
if rb, ok := s.rowPtrs[i].(*sql.RawBytes); ok {
s.rowValues[i] = string(*rb)