SQL: Return no data response when no rows returned (#59121)

This commit is contained in:
Zoltán Bedi 2022-11-24 18:01:05 +01:00 committed by GitHub
parent ff87a2641f
commit 220295d26f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}