apply security patch: v11.2.x/182-202409301509.patch

commit a5445cf0c8e05c807cc2c77eac9fd1cc06cf83aa
Author: Scott Lepper <scott.lepper@gmail.com>
Date:   Mon Sep 30 11:08:17 2024 -0400

    disable sql expressions
This commit is contained in:
github-actions[bot]
2024-10-02 15:55:34 +00:00
committed by joshhunt
parent 086b47f098
commit 8ab94e1553
3 changed files with 28 additions and 4 deletions
+1 -2
View File
@@ -7,7 +7,6 @@ import (
"time"
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/scottlepp/go-duck/duck"
"github.com/grafana/grafana/pkg/apimachinery/errutil"
"github.com/grafana/grafana/pkg/expr/mathexp"
@@ -94,7 +93,7 @@ func (gr *SQLCommand) Execute(ctx context.Context, now time.Time, vars mathexp.V
rsp := mathexp.Results{}
duckDB := duck.NewInMemoryDB()
duckDB := sql.NewInMemoryDB()
var frame = &data.Frame{}
logger.Debug("Executing query", "query", gr.query, "frames", len(allFrames))