You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Mikhail Stepura (JIRA)" <ji...@apache.org> on 2014/05/03 01:01:24 UTC
[jira] [Updated] (CASSANDRA-7142) Suggest CTRL-C/D or semicolon
after three blank lines in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-7142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Stepura updated CASSANDRA-7142:
---------------------------------------
Attachment: cassandra-2.0-7142.patch
Patch to print a warning after 3 empty lines in a statement
> Suggest CTRL-C/D or semicolon after three blank lines in cqlsh
> --------------------------------------------------------------
>
> Key: CASSANDRA-7142
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7142
> Project: Cassandra
> Issue Type: Improvement
> Components: Tools
> Reporter: Tyler Hobbs
> Assignee: Mikhail Stepura
> Priority: Trivial
> Labels: lhf
> Fix For: 2.0.8, 2.1 rc1
>
> Attachments: cassandra-2.0-7142.patch
>
>
> After observing a few people use Cassandra and cqlsh for the first time, most of them miss a quote or a semi-colon in cqlsh and do something like this:
> {noformat}
> cqlsh> INSERT INTO users (name, email) VALUES ('joe', 'joe@gmail')
> ...
> ...
> ...
> ...
> ...
> {noformat}
> If cqlsh gets three blank lines in a row, it could print something like:
> {noformat}
> Statements are terminated with a ';'. You can press CTRL-C to cancel an imcomplete statement.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)