You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mi...@apache.org on 2014/06/20 05:05:01 UTC

[02/10] git commit: Use 'text' formatter for 'ascii' values

Use 'text' formatter for 'ascii' values

patch by Mikhail Stepura; reviewed by Brandon Williams for CASSANDRA-7407


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

Branch: refs/heads/cassandra-2.0
Commit: ba103ebb3f01078c6b620eea2a196d58524752a6
Parents: b25ddd8
Author: Mikhail Stepura <mi...@apache.org>
Authored: Thu Jun 19 16:44:53 2014 +1100
Committer: Mikhail Stepura <mi...@apache.org>
Committed: Fri Jun 20 14:01:00 2014 +1100

----------------------------------------------------------------------
 CHANGES.txt                  | 1 +
 pylib/cqlshlib/formatting.py | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ba103ebb/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 8da8258..49afb06 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 1.2.17
+ * cqlsh: 'ascii' values weren't formatted as text (CASSANDRA-7407)
  * cqlsh: ignore .cassandra permission errors (CASSANDRA-7266)
  * Errors in FlushRunnable may leave threads hung (CASSANDRA-7275)
  * reduce failure detector initial value to 2s (CASSANDRA-7307)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/ba103ebb/pylib/cqlshlib/formatting.py
----------------------------------------------------------------------
diff --git a/pylib/cqlshlib/formatting.py b/pylib/cqlshlib/formatting.py
index 44392ce..122db15 100644
--- a/pylib/cqlshlib/formatting.py
+++ b/pylib/cqlshlib/formatting.py
@@ -191,6 +191,7 @@ def format_value_text(val, encoding, colormap, quote=False, **_):
 
 # name alias
 formatter_for('varchar')(format_value_text)
+formatter_for('ascii')(format_value_text)
 
 def format_simple_collection(subtype, val, lbracket, rbracket, encoding,
                              colormap, time_format, float_precision, nullval):