Skip to content

Commit

Permalink
No aliases in stdin mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Sep 25, 2024
1 parent 2369b0f commit d382b3b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions service/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "") {
Expand Down

0 comments on commit d382b3b

Please sign in to comment.