Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C4889656 for ; Mon, 30 Apr 2012 17:24:10 +0000 (UTC) Received: (qmail 41294 invoked by uid 500); 30 Apr 2012 17:24:10 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 41267 invoked by uid 500); 30 Apr 2012 17:24:10 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 41075 invoked by uid 99); 30 Apr 2012 17:24:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2012 17:24:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2012 17:24:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AB739428485 for ; Mon, 30 Apr 2012 17:23:48 +0000 (UTC) Date: Mon, 30 Apr 2012 17:23:48 +0000 (UTC) From: "paul cannon (JIRA)" To: commits@cassandra.apache.org Message-ID: <1320725182.9861.1335806628703.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <705071950.7055.1334863000022.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-4173) cqlsh: in cql3 mode, use cql3 quoting when outputting cql MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] paul cannon updated CASSANDRA-4173: ----------------------------------- Attachment: 4173-3.patch.txt Rebased again on top of cassandra-1.1; I think I mucked something up with the last one. Wouldn't apply cleanly. Github branch updated too. New tag: https://github.com/thepaul/cassandra/tree/pending/4173-3 > cqlsh: in cql3 mode, use cql3 quoting when outputting cql > --------------------------------------------------------- > > Key: CASSANDRA-4173 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4173 > Project: Cassandra > Issue Type: Improvement > Components: Tools > Affects Versions: 1.1.0 > Reporter: paul cannon > Assignee: paul cannon > Priority: Minor > Labels: cql3, cqlsh > Fix For: 1.1.1 > > Attachments: 4173-3.patch.txt > > > when cqlsh needs to output a column name or other term which needs quoting (say, if you run DESCRIBE KEYSPACE and some column name has a space in it), it currently only knows how to quote in the cql2 way. That is, > {noformat} > cqlsh:foo> describe columnfamily bar > CREATE COLUMNFAMILY bar ( > a int PRIMARY KEY, > 'b c' text > ) WITH > ... > {noformat} > cql3 does not recognize single quotes around column names, or columnfamily or keyspace names either. cqlsh ought to learn how to use double-quotes instead when in cql3 mode. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira