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{}) }