Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to crystal-db ~> 0.11.0 #101

Merged
merged 3 commits into from
Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <jwajnerman@manas.tech>
- Brian J. Cardiff <bcardiff@manas.tech>

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