From d74bf6073adc1d6065906d58da0d445a4edb06f9 Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Fri, 4 Jan 2013 23:54:01 -0800 Subject: [PATCH] When using the FluentColumnFamily.CreateColumn, columns that don't have 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. --- src/FluentColumnFamily.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FluentColumnFamily.cs b/src/FluentColumnFamily.cs index dd04179..9e7351a 100644 --- a/src/FluentColumnFamily.cs +++ b/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) }; } ///