mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
SQL: Return no data response when no rows returned (#59121)
This commit is contained in:
parent
ff87a2641f
commit
220295d26f
@ -297,7 +297,7 @@ func (e *DataSourceHandler) executeQuery(query backend.DataQuery, wg *sync.WaitG
|
||||
|
||||
// If no rows were returned, no point checking anything else.
|
||||
if frame.Rows() == 0 {
|
||||
queryResult.dataResponse.Frames = data.Frames{frame}
|
||||
queryResult.dataResponse.Frames = data.Frames{}
|
||||
ch <- queryResult
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user