cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [2/5] git commit: Remove bogus validation post-6855
Date Fri, 23 May 2014 16:03:16 GMT
Remove bogus validation post-6855


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

Branch: refs/heads/trunk
Commit: 465a09c468679548cb4884f6a219c4335bb39350
Parents: 028f539
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Fri May 23 11:13:55 2014 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Fri May 23 11:13:55 2014 +0200

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cql3/UserTypes.java | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/465a09c4/src/java/org/apache/cassandra/cql3/UserTypes.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/UserTypes.java b/src/java/org/apache/cassandra/cql3/UserTypes.java
index 651fa23..e9da6e5 100644
--- a/src/java/org/apache/cassandra/cql3/UserTypes.java
+++ b/src/java/org/apache/cassandra/cql3/UserTypes.java
@@ -24,7 +24,6 @@ import org.apache.cassandra.db.marshal.CompositeType;
 import org.apache.cassandra.db.marshal.UserType;
 import org.apache.cassandra.db.marshal.UTF8Type;
 import org.apache.cassandra.exceptions.InvalidRequestException;
-import org.apache.cassandra.utils.FBUtilities;
 
 /**
  * Static helper methods and classes for user types.
@@ -159,11 +158,6 @@ public abstract class UserTypes
                 ByteBuffer buffer = values.get(i).bindAndGet(options);
                 if (buffer == null)
                     throw new InvalidRequestException("null is not supported inside user
type literals");
-                if (buffer.remaining() > FBUtilities.MAX_UNSIGNED_SHORT)
-                    throw new InvalidRequestException(String.format("Value for field %s is
too long. User type fields are limited to %d bytes but %d bytes provided",
-                                                                    UTF8Type.instance.getString(type.fieldNames.get(i)),
-                                                                    FBUtilities.MAX_UNSIGNED_SHORT,
-                                                                    buffer.remaining()));
 
                 buffers[i] = buffer;
             }


Mime
View raw message