update DB::ExecResult#rows_affected to Int64

This commit is contained in:
Brian J. Cardiff 2016-06-21 18:31:13 -03:00
parent 9f3f0a9836
commit c5d7778a0d
3 changed files with 4 additions and 4 deletions

View file

@ -70,7 +70,7 @@ class FooDriver < DB::Driver
end
protected def perform_exec(args : Enumerable) : DB::ExecResult
DB::ExecResult.new 0, 0i64
DB::ExecResult.new 0i64, 0i64
end
end
@ -124,7 +124,7 @@ class BarDriver < DB::Driver
end
protected def perform_exec(args : Enumerable) : DB::ExecResult
DB::ExecResult.new 0, 0i64
DB::ExecResult.new 0i64, 0i64
end
end

View file

@ -49,7 +49,7 @@ class DummyDriver < DB::Driver
protected def perform_exec(args : Enumerable)
set_params args
DB::ExecResult.new 0, 0_i64
DB::ExecResult.new 0i64, 0_i64
end
private def set_params(args)

View file

@ -78,7 +78,7 @@ module DB
{% end %}
# Result of a `#exec` statement.
record ExecResult, rows_affected : Int32, last_insert_id : Int64
record ExecResult, rows_affected : Int64, last_insert_id : Int64
# :nodoc:
def self.driver_class(driver_name) : Driver.class