Skip to content

Commit

Permalink
put hyphen check back when loading CF definitions. CASSANDRA-1377
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.6@988539 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
gdusbabek committed Aug 24, 2010
1 parent fd64ce5 commit 0caf009
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/java/org/apache/cassandra/config/DatabaseDescriptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@ private static void readTablesFromXml() throws ConfigurationException
{
throw new ConfigurationException("ColumnFamily name attribute is required");
}
if (cfName.contains("-"))
{
throw new ConfigurationException("ColumnFamily names cannot contain hyphens");
}
String xqlCF = xqlTable + "ColumnFamily[@Name='" + cfName + "']/";

// Parse out the column type
Expand Down

0 comments on commit 0caf009

Please sign in to comment.