Skip to content

Commit

Permalink
Fix: statement.connection is a DB::Connection (expected PG::Connection)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden authored Nov 5, 2023
1 parent cafeac7 commit a00c298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pg/result_set.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PG::ResultSet < ::DB::ResultSet
@column_index = -1 # The current column
@end = false # Did we read all the rows?
@rows_affected = 0_i64
@sized_io = Buffer.new(conn.soc, 1, statement.connection)
@sized_io = Buffer.new(conn.soc, 1, statement.connection.as(PG::Connection))
end

protected def conn
Expand Down

0 comments on commit a00c298

Please sign in to comment.