Permalink
Browse files

cast column names to return the right value with int column headers

  • Loading branch information...
1 parent 5158081 commit 0021f9992f28f7df5c054ae7e484f7d1947ac209 Aubrey Holland committed Oct 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cassandra-cql/row.rb
View
@@ -51,7 +51,7 @@ def column_names
def column_values
@row.columns.map { |column|
- @value_cache[column.name]
+ @value_cache[ColumnFamily.cast(column.name, @schema.names[column.name])]
}
end
@@ -68,4 +68,4 @@ def to_hash
Hash[([column_names, column_values]).transpose]
end
end
-end
+end

0 comments on commit 0021f99

Please sign in to comment.