Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cursor decoding with only one time column
When the cursor is created with only one time column, decoding it would crash, reporting that the columns and values have different sizes. This is because `Array(values)` attempts to call `#to_ary` and `#to_a` on its arguments before manually wrapping it in an array. This means that `Time#to_a` is called, which returns an array of 10 elements. The remedy is to do that manual wrapping ourselves, so that we can ensure that the values are always wrapped in an array, and then call `flatten` so that if an array was passed in, it is unwrapped back into a single level array.
- Loading branch information