You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ty...@apache.org on 2015/02/12 19:34:05 UTC

[2/3] cassandra git commit: ninja: fix cqlsh formatting of UDTs

ninja: fix cqlsh formatting of UDTs

Follow-up to upgrade of the bundled python driver for CASSANDRA-8154


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

Branch: refs/heads/trunk
Commit: 5c9d73209f94def94bd4aa4f159e365a44cbfe96
Parents: cf3e748
Author: Tyler Hobbs <ty...@datastax.com>
Authored: Thu Feb 12 12:32:54 2015 -0600
Committer: Tyler Hobbs <ty...@datastax.com>
Committed: Thu Feb 12 12:32:54 2015 -0600

----------------------------------------------------------------------
 bin/cqlsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/5c9d7320/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 26296a3..31dc080 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -482,7 +482,7 @@ def auto_format_udts():
     make_udt_class = cassandra.cqltypes.UserType.make_udt_class
     def new_make_udt_class(cls, *args, **kwargs):
         udt_class = make_udt_class(*args, **kwargs)
-        formatter_for(udt_class.typename)(format_value_utype)
+        formatter_for(udt_class.tuple_type.__name__)(format_value_utype)
         return udt_class
 
     cassandra.cqltypes.UserType.make_udt_class = classmethod(new_make_udt_class)