Skip to content

Commit

Permalink
remove alias
Browse files Browse the repository at this point in the history
  • Loading branch information
afzal-qxip committed Sep 12, 2024
1 parent e27ceb8 commit ae123fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func Quack(appFlags model.CommandLineFlags, query string, stdin bool, params string, hashdb string) (*sql.Rows, time.Duration, error) {
var err error
alias := *appFlags.Alias

motherduck, md := os.LookupEnv("motherduck_token")

if len(hashdb) > 0 {
Expand All @@ -29,7 +29,7 @@ func Quack(appFlags model.CommandLineFlags, query string, stdin bool, params str
check(db.ExecContext(context.Background(), "SET autoinstall_known_extensions=1;"))
check(db.ExecContext(context.Background(), "SET autoload_known_extensions=1;"))
}

check(db.ExecContext(context.Background(), "LOAD chsql;"))
if (md) && (motherduck != "") {
check(db.ExecContext(context.Background(), "LOAD motherduck; ATTACH 'md:';"))
Expand Down

0 comments on commit ae123fa

Please sign in to comment.