diff --git a/service/db/db.go b/service/db/db.go index c497b29..36ee79a 100644 --- a/service/db/db.go +++ b/service/db/db.go @@ -28,10 +28,9 @@ func Quack(appFlags model.CommandLineFlags, query string, stdin bool, params str check(db.ExecContext(context.Background(), "LOAD httpfs; LOAD json; LOAD parquet;")) check(db.ExecContext(context.Background(), "SET autoinstall_known_extensions=1;")) check(db.ExecContext(context.Background(), "SET autoload_known_extensions=1;")) - } - - if alias { - check(db.ExecContext(context.Background(), "LOAD chsql;")) + if alias { + check(db.ExecContext(context.Background(), "LOAD chsql;")) + } } if (md) && (motherduck != "") {