Skip to content

Keep empty --execute arguments out of stdin mode - #281

Open
ranjithkumar200621-arch wants to merge 1 commit into
dbcli:mainfrom
ranjithkumar200621-arch:fix/empty-execute-stdin
Open

ranjithkumar200621-arch wants to merge 1 commit into
dbcli:mainfrom
ranjithkumar200621-arch:fix/empty-execute-stdin

Conversation

@ranjithkumar200621-arch

Copy link
Copy Markdown

Description

An explicitly empty --execute argument falls through to stdin mode. The CLI should execute the option value and exit when the option is present, including when the value is an empty string.

Added a regression test that pipes a SELECT while passing --execute "". It fails before the fix and passes afterward. The full suite recorded 229 passed, 2 skipped, 1 xfailed, and 1 xpassed. Ruff formatting passed for both changed Python files, with no new lint diagnostics.

Prepared with Codex assistance.

Checklist

  • Added an entry to CHANGELOG.md.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant