Skip to content

Commit

Permalink
Fix db shell for sqlite (#13907)
Browse files Browse the repository at this point in the history
closes: #12806
  • Loading branch information
junnplus authored Jan 26, 2021
1 parent c2266aa commit 0d1c39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/cli/commands/db_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def shell(args):
f.flush()
execute_interactive(["mysql", f"--defaults-extra-file={f.name}"])
elif url.get_backend_name() == 'sqlite':
execute_interactive(["sqlite3", url.database]).wait()
execute_interactive(["sqlite3", url.database])
elif url.get_backend_name() == 'postgresql':
env = os.environ.copy()
env['PGHOST'] = url.host or ""
Expand Down

0 comments on commit 0d1c39a

Please sign in to comment.