cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [1/2] git commit: Follow-up to CASSANDRA-5052
Date Sun, 24 Mar 2013 16:43:00 GMT
Updated Branches:
  refs/heads/cassandra-1.2 08e7f4c14 -> 25f5afa67


Follow-up to CASSANDRA-5052


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0e037900
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0e037900
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0e037900

Branch: refs/heads/cassandra-1.2
Commit: 0e03790059e390fb58f45b8dc5e44e76f5e913d3
Parents: fa29f41
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Sun Mar 24 19:41:29 2013 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Sun Mar 24 19:41:29 2013 +0300

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cli/CliUtils.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0e037900/src/java/org/apache/cassandra/cli/CliUtils.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cli/CliUtils.java b/src/java/org/apache/cassandra/cli/CliUtils.java
index fd1bd40..cf1e855 100644
--- a/src/java/org/apache/cassandra/cli/CliUtils.java
+++ b/src/java/org/apache/cassandra/cli/CliUtils.java
@@ -53,7 +53,7 @@ public class CliUtils
 
     public static String maybeEscapeName(String name)
     {
-        return name.charAt(0) == '_' ? "\'" + name + "\'" : name;
+        return Character.isLetter(name.charAt(0)) ? name : "\'" + name + "\'";
     }
 
     /**


Mime
View raw message