Permalink
Browse files

When using the FluentColumnFamily.CreateColumn, columns that don't ha…

…ve named schemas are now given one using the Column Family's default validator. If the default validator is not set, then FluentCassandra falls back to using BytesType as the default ValueType.
  • Loading branch information...
1 parent b7aba46 commit d74bf6073adc1d6065906d58da0d445a4edb06f9 @Aaronontheweb Aaronontheweb committed Jan 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/FluentColumnFamily.cs
@@ -189,7 +189,7 @@ private CassandraColumnSchema GetColumnSchema(object name)
if (colSchema != null)
return colSchema;
- return new CassandraColumnSchema { NameType = schema.ColumnNameType, ValueType = typeof(BytesType) };
+ return new CassandraColumnSchema { NameType = schema.ColumnNameType, ValueType = schema.DefaultColumnValueType ?? typeof(BytesType) };
}
/// <summary>

0 comments on commit d74bf60

Please sign in to comment.