diff --git a/lib/trino/client/statement_client.rb b/lib/trino/client/statement_client.rb index 699a9540..2ba4ab41 100644 --- a/lib/trino/client/statement_client.rb +++ b/lib/trino/client/statement_client.rb @@ -85,7 +85,7 @@ def post_query_request! end if response - if response.status == 200 && !response.body.to_s.empty? + if response.status == 200 @results_headers = response.headers @results = decode_model(uri, parse_body(response), @models::QueryResults) return