Skip to content

Commit

Permalink
Put do_execute back with a deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
leboshi committed Nov 22, 2024
1 parent 6581809 commit 4ccddc0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ccddc0

Please sign in to comment.