Skip to content

Commit

Permalink
Update to crystal-db ~> 0.11.0 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian J. Cardiff authored Jan 28, 2022
1 parent 529c7dd commit 684c96d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ version: 0.13.0
dependencies:
db:
github: crystal-lang/crystal-db
version: ~> 0.10.0
version: ~> 0.11.0

authors:
- Juan Wajnerman <[email protected]>
- Brian J. Cardiff <[email protected]>

crystal: ">= 0.35.0, < 2.0.0"
crystal: ">= 1.0.0, < 2.0.0"

license: MIT
4 changes: 4 additions & 0 deletions src/mysql/result_set.cr
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ class MySql::ResultSet < DB::ResultSet
end
end

def next_column_index : Int32
@column_index
end

def read
mysql_read do |row_packet, column|
val = column.column_type.read(row_packet)
Expand Down
4 changes: 4 additions & 0 deletions src/mysql/text_result_set.cr
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ class MySql::TextResultSet < DB::ResultSet
end
end

def next_column_index : Int32
@column_index
end

def read
mysql_read do |row_packet, column, length|
val = row_packet.read_string(length)
Expand Down

0 comments on commit 684c96d

Please sign in to comment.