[
https://issues.apache.org/jira/browse/CASSANDRA-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008467#comment-13008467
]
Eric Evans commented on CASSANDRA-2352:
---------------------------------------
bq. Does this mean empty strings will validate as column names?
The {{AbstractType.validate()}} methods already allow this. As Jonathan says,
wherever that's not acceptable, {{ThriftValidation}} has tests to ensure
name.remaining() != 0.
> zero-length strings should result in zero-length ByteBuffers
> ------------------------------------------------------------
>
> Key: CASSANDRA-2352
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2352
> Project: Cassandra
> Issue Type: Bug
> Components: API, Core
> Reporter: Eric Evans
> Assignee: Eric Evans
> Labels: cql
> Fix For: 0.8
>
> Attachments:
> v1-0001-CASSANDRA-2352-AT.fromString-should-return-empty-BB-fo.txt
>
>
> The {{o.a.c.db.marshal.AbstractType.fromString()}} methods should return an
> empty {{ByteBuffer}} when passed a zero-length string, (empty bytes do
> {{validate()}} properly).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira