Skip to content

Commit

Permalink
add #next_column_index to db mocker (#470)
Browse files Browse the repository at this point in the history
This is required by changes made in crystal-db v0.11.0
  • Loading branch information
pan committed Jan 18, 2023
1 parent ddb5b58 commit 51e41d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/mocks/db_mock.cr
Expand Up @@ -88,4 +88,8 @@ class FieldEmitter < DB::ResultSet
def column_name(index : Int32) : String
"Column #{index}"
end

def next_column_index : Int32
@field_position
end
end

0 comments on commit 51e41d4

Please sign in to comment.