Skip to content

Commit

Permalink
Fix Adapter.execute return type
Browse files Browse the repository at this point in the history
  • Loading branch information
hzamani committed Sep 12, 2017
1 parent d6cf152 commit 2f28b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto_cassandra/adapter.ex
Expand Up @@ -103,7 +103,7 @@ defmodule EctoCassandra.Adapter do
case exec_and_log(repo, cql, options) do
%CQL.Result.Rows{rows_count: count, rows: rows} ->
{count, Enum.map(rows, &process_row(&1, fields, process))}
%CQL.Result.Void{} -> :ok
%CQL.Result.Void{} -> {0, nil}
error -> raise error
end
end
Expand Down

0 comments on commit 2f28b85

Please sign in to comment.