From 4ccddc02dc54901db1eb89499b2a722606919e62 Mon Sep 17 00:00:00 2001 From: Ryan Kerr Date: Fri, 6 Sep 2024 05:23:16 -0400 Subject: [PATCH] Put do_execute back with a deprecation warning. --- .../connection_adapters/clickhouse/schema_statements.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/active_record/connection_adapters/clickhouse/schema_statements.rb b/lib/active_record/connection_adapters/clickhouse/schema_statements.rb index beec383..f8d140c 100644 --- a/lib/active_record/connection_adapters/clickhouse/schema_statements.rb +++ b/lib/active_record/connection_adapters/clickhouse/schema_statements.rb @@ -160,6 +160,14 @@ def do_system_execute(sql, name = nil, except_params: []) end end + def do_execute(sql, name = nil, format: DEFAULT_RESPONSE_FORMAT, settings: {}) + ActiveRecord.deprecator.warn(<<~MSG.squish) + `do_execute` is deprecated and will be removed in an upcoming release. + Please use `execute` instead. + MSG + execute(sql, name, format: format, settings: settings) + end + if ::ActiveRecord::version >= Gem::Version.new('7.2') def schema_migration pool.schema_migration