Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@ class CliArgs:
help='Format for batch or --execute output.',
)
throttle: float = clickdc.option(
type=int,
type=float,
default=0.0,
help='Pause in seconds between queries in batch mode.',
)
Expand Down Expand Up @@ -2702,7 +2702,7 @@ def dispatch_batch_statements(statements: str, batch_counter: int) -> None:
sys.exit(1)
try:
if warn_confirmed:
if cli_args.throttle and batch_counter >= 1:
if cli_args.throttle > 0 and batch_counter >= 1:
sleep(cli_args.throttle)
mycli.run_query(statements, checkpoint=cli_args.checkpoint, new_line=True)
except Exception as e:
Expand Down
Loading