cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mish...@apache.org
Subject [04/10] git commit: Use 'text' formatter for 'ascii' values
Date Fri, 20 Jun 2014 03:05:03 GMT
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/trunk
Commit: ba103ebb3f01078c6b620eea2a196d58524752a6
Parents: b25ddd8
Author: Mikhail Stepura <mishail@apache.org>
Authored: Thu Jun 19 16:44:53 2014 +1100
Committer: Mikhail Stepura <mishail@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):


Mime
View raw message