From 233ee492a385709583ad91c9c40fd3809a5f3f6f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 19 Mar 2024 12:09:18 -0700 Subject: [PATCH] Added comment [skip ci] --- lib/blazer/adapters/sql_adapter.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/blazer/adapters/sql_adapter.rb b/lib/blazer/adapters/sql_adapter.rb index 38c3d441..f35826c9 100644 --- a/lib/blazer/adapters/sql_adapter.rb +++ b/lib/blazer/adapters/sql_adapter.rb @@ -30,6 +30,8 @@ def run_statement(statement, comment, bind_params = []) columns = result.columns rows = result.rows + + # cast values if result.column_types.any? types = columns.map { |c| result.column_types[c] } rows =