apply security patch: v11.0.x/184-202409301526.patch
commit 52978144184ecdfea4fca8716c8aa194f42bf965 Author: Scott Lepper <scott.lepper@gmail.com> Date: Mon Sep 30 11:24:19 2024 -0400 remove sql expressions 11.0.x
This commit is contained in:
committed by
joshhunt
parent
1ee903d794
commit
a76fccbb75
@@ -7,7 +7,6 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/jeremywohl/flatten"
|
||||
"github.com/scottlepp/go-duck/duck"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,7 +17,7 @@ const (
|
||||
|
||||
// TablesList returns a list of tables for the sql statement
|
||||
func TablesList(rawSQL string) ([]string, error) {
|
||||
duckDB := duck.NewInMemoryDB()
|
||||
duckDB := NewInMemoryDB()
|
||||
rawSQL = strings.Replace(rawSQL, "'", "''", -1)
|
||||
cmd := fmt.Sprintf("SELECT json_serialize_sql('%s')", rawSQL)
|
||||
ret, err := duckDB.RunCommands([]string{cmd})
|
||||
|
||||
Reference in New Issue
Block a user