Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
When using the FluentColumnFamily.CreateColumn, columns that don't ha…
Browse files Browse the repository at this point in the history
…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
Aaronontheweb committed Jan 5, 2013
1 parent b7aba46 commit d74bf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FluentColumnFamily.cs
Expand Up @@ -189,7 +189,7 @@ private CassandraColumnSchema GetColumnSchema(object name)
if (colSchema != null) if (colSchema != null)
return colSchema; return colSchema;


return new CassandraColumnSchema { NameType = schema.ColumnNameType, ValueType = typeof(BytesType) }; return new CassandraColumnSchema { NameType = schema.ColumnNameType, ValueType = schema.DefaultColumnValueType ?? typeof(BytesType) };
} }


/// <summary> /// <summary>
Expand Down

0 comments on commit d74bf60

Please sign in to comment.