From a00c298981f550b44d1338ec9a83bb52d16ac49d Mon Sep 17 00:00:00 2001 From: Julien Portalier Date: Sun, 5 Nov 2023 18:31:49 +0100 Subject: [PATCH] Fix: statement.connection is a DB::Connection (expected PG::Connection) --- src/pg/result_set.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg/result_set.cr b/src/pg/result_set.cr index 8f7672bb..3a1570dc 100644 --- a/src/pg/result_set.cr +++ b/src/pg/result_set.cr @@ -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