Skip to content

fix: correct multiline toolbar hint about the semi-colon - #267

Open
Sanjays2402 wants to merge 1 commit into
dbcli:mainfrom
Sanjays2402:fix/multiline-toolbar-hint
Open

fix: correct multiline toolbar hint about the semi-colon#267
Sanjays2402 wants to merge 1 commit into
dbcli:mainfrom
Sanjays2402:fix/multiline-toolbar-hint

Conversation

@Sanjays2402

Copy link
Copy Markdown

Closes #266

Description

In multiline mode the bottom toolbar read (Semi-colon [;] will end the line). A trailing semi-colon does not end the line — cli_is_multiline / _multiline_exception treat it as end-of-input, so the statement is submitted and run. The hint now reads (Semi-colon [;] will run the query).

Added tests/test_clitoolbar.py covering the multiline hint text and the single-line case; it fails on the old string and passes with the fix.

Checklist

  • I've added this contribution to the CHANGELOG.md file.

This change was prepared with AI assistance; the regression test was run locally and fails without the fix.

In multiline mode the bottom toolbar read "(Semi-colon [;] will end the
line)", but a trailing semi-colon does not end the line - it terminates
the statement and submits the query for execution (cli_is_multiline /
_multiline_exception treat a trailing ';' as end-of-input).

The hint now reads "(Semi-colon [;] will run the query)".

Closes dbcli#266
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.

Misleading status message in Multiline mode

1 participant