From 45d6e8b02eab27533c27c983c40b65c9a9685ab7 Mon Sep 17 00:00:00 2001 From: Satish Aher Date: Wed, 26 Jun 2024 13:20:18 +0530 Subject: [PATCH] Using fetch for tables in odbc adapter --- 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 da18741..10a02d5 100644 --- a/lib/odbc_adapter/schema_statements.rb +++ b/lib/odbc_adapter/schema_statements.rb @@ -13,7 +13,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|