From 8f5e6b7b8cbefa7462eda7bdb5811d36237b295e Mon Sep 17 00:00:00 2001 From: Sven Rebhan Date: Thu, 13 Apr 2023 23:18:34 +0200 Subject: [PATCH] Avoid custom version check and disable multi-line comments --- drivers/flightsql/flightsql.go | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/flightsql/flightsql.go b/drivers/flightsql/flightsql.go index a7fc2bf3b03..d15dd171d7d 100644 --- a/drivers/flightsql/flightsql.go +++ b/drivers/flightsql/flightsql.go @@ -4,25 +4,10 @@ package flightsql import ( - "context" - _ "github.com/apache/arrow/go/v12/arrow/flight/flightsql/driver" // DRIVER "github.com/xo/usql/drivers" ) func init() { - drivers.Register("flightsql", drivers.Driver{ - AllowMultilineComments: true, - Version: func(ctx context.Context, db drivers.DB) (string, error) { - var ver string - err := db.QueryRowContext( - ctx, - `SELECT version()`, - ).Scan(&ver) - if err != nil { - return "", err - } - return "FlightSQL " + ver, nil - }, - }) + drivers.Register("flightsql", drivers.Driver{}) }