Skip to content

Commit d382b3b

Browse files
authored
No aliases in stdin mode
1 parent 2369b0f commit d382b3b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

service/db/db.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ func Quack(appFlags model.CommandLineFlags, query string, stdin bool, params str
2828
check(db.ExecContext(context.Background(), "LOAD httpfs; LOAD json; LOAD parquet;"))
2929
check(db.ExecContext(context.Background(), "SET autoinstall_known_extensions=1;"))
3030
check(db.ExecContext(context.Background(), "SET autoload_known_extensions=1;"))
31-
}
32-
33-
if alias {
34-
check(db.ExecContext(context.Background(), "LOAD chsql;"))
31+
if alias {
32+
check(db.ExecContext(context.Background(), "LOAD chsql;"))
33+
}
3534
}
3635

3736
if (md) && (motherduck != "") {

0 commit comments

Comments
 (0)