Fixed bug with retrieving CounterColumns #99

Merged
merged 2 commits into from Jan 5, 2013
@@ -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>
View
@@ -144,9 +144,9 @@ public static IFluentBaseColumn ConvertToFluentBaseColumn(ColumnOrSuperColumn co
else if (col.Column != null)
return ConvertColumnToFluentColumn(col.Column, schema);
else if (col.Counter_super_column != null)
- return ConvertColumnToFluentCounterColumn(col.Counter_column, schema);
+ return ConvertSuperColumnToFluentCounterSuperColumn(col.Counter_super_column, schema);
else if (col.Counter_column != null)
- return ConvertSuperColumnToFluentCounterSuperColumn(col.Counter_super_column, schema);
+ return ConvertColumnToFluentCounterColumn(col.Counter_column, schema);
else
return null;
}