mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 09:34:27 +08:00
mysql: Null value should not be considered as previous value
fixes #8655
This commit is contained in:
@ -307,6 +307,9 @@ func (s *stringStringScan) Update(rows *sql.Rows) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.time = null.FloatFromPtr(nil)
|
||||||
|
s.value = null.FloatFromPtr(nil)
|
||||||
|
|
||||||
for i := 0; i < s.columnCount; i++ {
|
for i := 0; i < s.columnCount; i++ {
|
||||||
if rb, ok := s.rowPtrs[i].(*sql.RawBytes); ok {
|
if rb, ok := s.rowPtrs[i].(*sql.RawBytes); ok {
|
||||||
s.rowValues[i] = string(*rb)
|
s.rowValues[i] = string(*rb)
|
||||||
|
Reference in New Issue
Block a user