Repository: cassandra Updated Branches: refs/heads/cassandra-1.2 b25ddd8a7 -> ba103ebb3 refs/heads/cassandra-2.0 f0ebdeb29 -> 37736ab1b refs/heads/cassandra-2.1 6858dd3e3 -> 0cdf2b3fc refs/heads/trunk 23c2fa8c8 -> 6f3f5fbdf
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-1.2 Commit: ba103ebb3f01078c6b620eea2a196d58524752a6 Parents: b25ddd8 Author: Mikhail Stepura <mish...@apache.org> Authored: Thu Jun 19 16:44:53 2014 +1100 Committer: Mikhail Stepura <mish...@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):