From e9c43b948fa6ca5203a364ae50c6b5fe11794a6e Mon Sep 17 00:00:00 2001 From: Ajit Konde Date: Tue, 14 Feb 2023 01:17:29 +0530 Subject: [PATCH] Replaced fetch_all with fetch --- lib/odbc_adapter/schema_statements.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/odbc_adapter/schema_statements.rb b/lib/odbc_adapter/schema_statements.rb index 3df30c9c..54deea9d 100644 --- a/lib/odbc_adapter/schema_statements.rb +++ b/lib/odbc_adapter/schema_statements.rb @@ -11,7 +11,7 @@ def native_database_types # current connection. def tables(_name = nil) stmt = @connection.tables - result = stmt.fetch_all || [] + result = stmt.fetch || [] stmt.drop result.each_with_object([]) do |row, table_names|