mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
update DB::ExecResult#rows_affected to Int64
This commit is contained in:
parent
9f3f0a9836
commit
c5d7778a0d
3 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ class FooDriver < DB::Driver
|
||||||
end
|
end
|
||||||
|
|
||||||
protected def perform_exec(args : Enumerable) : DB::ExecResult
|
protected def perform_exec(args : Enumerable) : DB::ExecResult
|
||||||
DB::ExecResult.new 0, 0i64
|
DB::ExecResult.new 0i64, 0i64
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ class BarDriver < DB::Driver
|
||||||
end
|
end
|
||||||
|
|
||||||
protected def perform_exec(args : Enumerable) : DB::ExecResult
|
protected def perform_exec(args : Enumerable) : DB::ExecResult
|
||||||
DB::ExecResult.new 0, 0i64
|
DB::ExecResult.new 0i64, 0i64
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ class DummyDriver < DB::Driver
|
||||||
|
|
||||||
protected def perform_exec(args : Enumerable)
|
protected def perform_exec(args : Enumerable)
|
||||||
set_params args
|
set_params args
|
||||||
DB::ExecResult.new 0, 0_i64
|
DB::ExecResult.new 0i64, 0_i64
|
||||||
end
|
end
|
||||||
|
|
||||||
private def set_params(args)
|
private def set_params(args)
|
||||||
|
|
|
@ -78,7 +78,7 @@ module DB
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
# Result of a `#exec` statement.
|
# Result of a `#exec` statement.
|
||||||
record ExecResult, rows_affected : Int32, last_insert_id : Int64
|
record ExecResult, rows_affected : Int64, last_insert_id : Int64
|
||||||
|
|
||||||
# :nodoc:
|
# :nodoc:
|
||||||
def self.driver_class(driver_name) : Driver.class
|
def self.driver_class(driver_name) : Driver.class
|
||||||
|
|
Loading…
Reference in a new issue