Permalink
Browse files

Timestamp need to be with the same format for create and delete (todo :

verify other functions too)
  • Loading branch information...
vivrass committed Nov 25, 2011
1 parent 09dd2b3 commit 50b7837d581e485cd36ceec178784a7d5aff3a07
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/stargate/operation/row_operation.rb
@@ -158,6 +158,7 @@ def create_row(table_name, name, timestamp = nil, columns = nil)
# @param [Integer] timestamp optional timestamp value (deletes all timestamp if not specified)
# @param [Array<String>] optional list of specific columns to delete (deletes all columns if not specified)
def delete_row(table_name, name, timestamp = nil, columns = nil)
+ timestamp *= 1000 unless timestamp.nil?
handle_exception(table_name, name) do
request = Request::RowRequest.new(table_name, name, timestamp)
response = rest_delete_response(request.delete(columns))

0 comments on commit 50b7837

Please sign in to comment.