You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by al...@apache.org on 2012/11/17 19:11:04 UTC

git commit: cqlsh: fix rendering of blob fields; patch by Aleksey Yeschenko, reviewed by Brandon Williams for CASSANDRA-4970

Updated Branches:
  refs/heads/cassandra-1.2.0 bd33330b9 -> 34dc2f345


cqlsh: fix rendering of blob fields; patch by Aleksey Yeschenko, reviewed by Brandon Williams for CASSANDRA-4970


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

Branch: refs/heads/cassandra-1.2.0
Commit: 34dc2f3457e7fac51c6cbbe08b9c55a6cbe9e6aa
Parents: bd33330
Author: Aleksey Yeschenko <al...@apache.org>
Authored: Sat Nov 17 21:08:25 2012 +0300
Committer: Aleksey Yeschenko <al...@apache.org>
Committed: Sat Nov 17 21:08:25 2012 +0300

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/34dc2f34/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index b935425..7f5a487 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 1.2-rc1
+ * fix cqlsh rendering of blob fields (CASSANDRA-4970)
  * fix cqlsh DESCRIBE command (CASSANDRA-4913)
  * save truncation position in system table (CASSANDRA-4906)
  * Move CompressionMetadata off-heap (CASSANDRA-4937)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/34dc2f34/pylib/cqlshlib/formatting.py
----------------------------------------------------------------------
diff --git a/pylib/cqlshlib/formatting.py b/pylib/cqlshlib/formatting.py
index d15c083..bab3506 100644
--- a/pylib/cqlshlib/formatting.py
+++ b/pylib/cqlshlib/formatting.py
@@ -88,8 +88,8 @@ def formatter_for(typname):
         return f
     return registrator
 
-@formatter_for('bytes')
-def format_value_bytes(val, colormap, **_):
+@formatter_for('blob')
+def format_value_blob(val, colormap, **_):
     bval = ''.join('%02x' % ord(c) for c in val)
     return colorme(bval, colormap, 'hex')